diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-07-10 14:05:55 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-07-19 11:52:52 -0400 |
| commit | 0613f29757b688b55b74027063d35dcebc23b10a (patch) | |
| tree | 65223cfb311adcdadd9d673095c153cba99236cf /.config/nvim/lua/plugins/lsp.lua | |
| parent | 9b4332d25594ff14a4b3038acc4a482325207759 (diff) | |
nvim: stuff
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 = {}, + }, } |
