mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
nvim: added gopls and adjusted lsp config
This commit is contained in:
parent
aa84593153
commit
428c884e0d
2 changed files with 104 additions and 2 deletions
|
|
@ -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 }
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue