update config

This commit is contained in:
ksyasuda 2023-03-02 22:11:42 -08:00
parent 34f6f4c805
commit c4b28b18d9
2 changed files with 36 additions and 36 deletions

View File

@ -79,42 +79,42 @@ require('packer').startup(function(use)
run = function() vim.fn['fzf#install']() end
}
use {
"lewis6991/hover.nvim",
config = function()
require("hover").setup {
init = function()
-- Require providers
require("hover.providers.lsp")
-- require('hover.providers.gh')
-- require('hover.providers.jira')
require('hover.providers.man')
require('hover.providers.dictionary')
end,
preview_opts = {
border = "rounded"
-- border = {
-- { "╭", "FloatBorder" },
-- { "─", "FloatBorder" },
-- { "╮", "FloatBorder" },
-- { "│", "FloatBorder" },
-- { "╯", "FloatBorder" },
-- { "─", "FloatBorder" },
-- { "╰", "FloatBorder" },
-- { "│", "FloatBorder" },
-- }
},
-- Whether the contents of a currently open hover window should be moved
-- to a :h preview-window when pressing the hover keymap.
preview_window = false,
title = true
}
-- use {
-- "lewis6991/hover.nvim",
-- config = function()
-- require("hover").setup {
-- init = function()
-- -- Require providers
-- require("hover.providers.lsp")
-- -- require('hover.providers.gh')
-- -- require('hover.providers.jira')
-- require('hover.providers.man')
-- require('hover.providers.dictionary')
-- end,
-- preview_opts = {
-- border = "rounded"
-- -- border = {
-- -- { "╭", "FloatBorder" },
-- -- { "─", "FloatBorder" },
-- -- { "╮", "FloatBorder" },
-- -- { "│", "FloatBorder" },
-- -- { "╯", "FloatBorder" },
-- -- { "─", "FloatBorder" },
-- -- { "╰", "FloatBorder" },
-- -- { "│", "FloatBorder" },
-- -- }
-- },
-- -- Whether the contents of a currently open hover window should be moved
-- -- to a :h preview-window when pressing the hover keymap.
-- preview_window = false,
-- title = true
-- }
-- Setup keymaps
vim.keymap.set("n", "K", require("hover").hover, {desc = "hover.nvim"})
vim.keymap.set("n", "gK", require("hover").hover_select, {desc = "hover.nvim (select)"})
end
}
-- -- Setup keymaps
-- vim.keymap.set("n", "K", require("hover").hover, {desc = "hover.nvim"})
-- vim.keymap.set("n", "gK", require("hover").hover_select, {desc = "hover.nvim (select)"})
-- end
-- }
use 'ap/vim-css-color'
use 'jiangmiao/auto-pairs'

View File

@ -175,7 +175,7 @@ cmp.setup({
})
local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls' }
local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls', 'lua_ls' }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
-- on_attach = my_custom_on_attach,