From 15770ed51a07494f72d1a2693cd5f0c199bca278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Mon, 27 Mar 2023 14:42:45 +0200 Subject: [PATCH] lsp: add navbuddy --- lua/plugins/lsp.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index c349d84..a770fcc 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -19,6 +19,8 @@ local on_attach = function(_, bufnr) vim.lsp.buf.format({ timeout_ms = 2000 }) end + require('nvim-navbuddy').attach(client, bufnr) + nmap('rn', vim.lsp.buf.rename, '[R]e[n]ame') nmap('ca', vim.lsp.buf.code_action, '[C]ode [A]ction') nmap('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 = {} },