lsp: add navbuddy
This commit is contained in:
parent
75068a728b
commit
15770ed51a
|
@ -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 = {} },
|
||||
|
||||
|
|
Loading…
Reference in New Issue