diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index bfafec4..e207642 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -71,6 +71,7 @@ return { 'SmiteshP/nvim-navic', 'MunifTanjim/nui.nvim', }, + opts = { lsp = { auto_attach = true } }, }, }, config = function() @@ -231,11 +232,6 @@ return { --- quickfix u.buf_command(bufnr, 'LspDiagQuickfix', vim.diagnostic.setqflist) u.buf_map(bufnr, 'n', 'q', ':LspDiagQuickfix') - - -- show current context in statusline/winbar - if client.server_capabilities.documentSymbolProvider then - require('nvim-navbuddy').attach(client, bufnr) - end end local capabilities = require('cmp_nvim_lsp').default_capabilities() diff --git a/lua/plugins/navbuddy.lua b/lua/plugins/navbuddy.lua deleted file mode 100644 index 12fe5db..0000000 --- a/lua/plugins/navbuddy.lua +++ /dev/null @@ -1,28 +0,0 @@ -return { - 'SmiteshP/nvim-navbuddy', - dependencies = { - 'neovim/nvim-lspconfig', - 'SmiteshP/nvim-navic', - 'MunifTanjim/nui.nvim', - }, - keys = { - { 'n', 'Navbuddy', desc = 'Nav' }, - }, - config = function() - local actions = require('nvim-navbuddy.actions') - local navbuddy = require('nvim-navbuddy') - navbuddy.setup({ - window = { - border = 'double', - }, - mappings = { - ['k'] = actions.next_sibling, - ['i'] = actions.previous_sibling, - ['j'] = actions.parent, - ['l'] = actions.children, - ['q'] = actions.close, - ['esc'] = actions.close, - }, - }) - end, -}