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 run = function() vim.fn['fzf#install']() end
} }
use { -- use {
"lewis6991/hover.nvim", -- "lewis6991/hover.nvim",
config = function() -- config = function()
require("hover").setup { -- require("hover").setup {
init = function() -- init = function()
-- Require providers -- -- Require providers
require("hover.providers.lsp") -- require("hover.providers.lsp")
-- require('hover.providers.gh') -- -- require('hover.providers.gh')
-- require('hover.providers.jira') -- -- require('hover.providers.jira')
require('hover.providers.man') -- require('hover.providers.man')
require('hover.providers.dictionary') -- require('hover.providers.dictionary')
end, -- end,
preview_opts = { -- preview_opts = {
border = "rounded" -- border = "rounded"
-- border = { -- -- border = {
-- { "╭", "FloatBorder" }, -- -- { "╭", "FloatBorder" },
-- { "─", "FloatBorder" }, -- -- { "─", "FloatBorder" },
-- { "╮", "FloatBorder" }, -- -- { "╮", "FloatBorder" },
-- { "│", "FloatBorder" }, -- -- { "│", "FloatBorder" },
-- { "╯", "FloatBorder" }, -- -- { "╯", "FloatBorder" },
-- { "─", "FloatBorder" }, -- -- { "─", "FloatBorder" },
-- { "╰", "FloatBorder" }, -- -- { "╰", "FloatBorder" },
-- { "│", "FloatBorder" }, -- -- { "│", "FloatBorder" },
-- } -- -- }
}, -- },
-- Whether the contents of a currently open hover window should be moved -- -- Whether the contents of a currently open hover window should be moved
-- to a :h preview-window when pressing the hover keymap. -- -- to a :h preview-window when pressing the hover keymap.
preview_window = false, -- preview_window = false,
title = true -- title = true
} -- }
-- Setup keymaps -- -- Setup keymaps
vim.keymap.set("n", "K", require("hover").hover, {desc = "hover.nvim"}) -- vim.keymap.set("n", "K", require("hover").hover, {desc = "hover.nvim"})
vim.keymap.set("n", "gK", require("hover").hover_select, {desc = "hover.nvim (select)"}) -- vim.keymap.set("n", "gK", require("hover").hover_select, {desc = "hover.nvim (select)"})
end -- end
} -- }
use 'ap/vim-css-color' use 'ap/vim-css-color'
use 'jiangmiao/auto-pairs' 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 for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup {
-- on_attach = my_custom_on_attach, -- on_attach = my_custom_on_attach,