nvim: added gopls and adjusted lsp config

This commit is contained in:
gyoder 2025-08-18 11:47:49 -06:00
parent aa84593153
commit 428c884e0d
2 changed files with 104 additions and 2 deletions

View file

@ -10,9 +10,13 @@ vim.keymap.set(
)
vim.keymap.set(
"n",
"K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions
"K",
function()
vim.cmd.RustLsp({'hover', 'actions'})
if vim.bo.filetype == "rust" then
vim.cmd.RustLsp({'hover', 'actions'})
else
vim.lsp.buf.hover()
end
end,
{ silent = true, buffer = bufnr }
)