diff options
Diffstat (limited to '.config/nvim/lua/plugins/lsp.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index cb4511d..4d169c1 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -4,6 +4,12 @@ return { dependencies = { "hrsh7th/cmp-nvim-lsp", "jose-elias-alvarez/null-ls.nvim", + { + "SmiteshP/nvim-navic", + opts = { + highlight = true, + }, + }, }, event = { "BufReadPre", "BufNewFile" }, config = function() @@ -11,10 +17,14 @@ return { local capabilities = require("cmp_nvim_lsp").default_capabilities() local common = { capabilities = capabilities, + on_attach = function(client, bufnr) + if client.server_capabilities.documentSymbolProvider then + require("nvim-navic").attach(client, bufnr) + end + end, } local lsps = { - "rust_analyzer", "gopls", "lua_ls", "pylsp", @@ -75,4 +85,10 @@ return { }) end, }, + { + "j-hui/fidget.nvim", + tag = "legacy", + event = "LspAttach", + opts = {}, + }, } |
