lsp: add navbuddy

This commit is contained in:
Matej Janezic 2023-03-27 14:42:45 +02:00
parent 75068a728b
commit 15770ed51a
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,8 @@ local on_attach = function(_, bufnr)
vim.lsp.buf.format({ timeout_ms = 2000 })
end
require('nvim-navbuddy').attach(client, bufnr)
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
nmap('<leader>ff', delayed_format, '[F]ormat')
@ -56,6 +58,15 @@ return {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
{
'SmiteshP/nvim-navbuddy',
dependencies = {
'neovim/nvim-lspconfig',
'SmiteshP/nvim-navic',
'MunifTanjim/nui.nvim',
},
},
-- Useful status updates for LSP
{ 'j-hui/fidget.nvim', opts = {} },