diff options
Diffstat (limited to '.config/nvim/lua/plugins/lsp.lua')
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index d03d9af..8444f4b 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -60,7 +60,7 @@ return { | |||
60 | vim.diagnostic.config(config) | 60 | vim.diagnostic.config(config) |
61 | 61 | ||
62 | -- this function gets run when an lsp connects to a particular buffer. | 62 | -- this function gets run when an lsp connects to a particular buffer. |
63 | local on_attach = function(client, bufnr) | 63 | local on_attach = function(_, bufnr) |
64 | map = require("helpers.keys").lsp_map | 64 | map = require("helpers.keys").lsp_map |
65 | 65 | ||
66 | map("<leader>lr", vim.lsp.buf.rename, bufnr, "lsp: rename symbol") | 66 | map("<leader>lr", vim.lsp.buf.rename, bufnr, "lsp: rename symbol") |
@@ -81,11 +81,6 @@ return { | |||
81 | end, { desc = "lsp: format current buffer" }) | 81 | end, { desc = "lsp: format current buffer" }) |
82 | 82 | ||
83 | map("<leader>fm", "<cmd>Format<cr>", bufnr, "lsp: format current buffer") | 83 | map("<leader>fm", "<cmd>Format<cr>", bufnr, "lsp: format current buffer") |
84 | |||
85 | -- Attach and configure vim-illuminate | ||
86 | -- apparently this is deprecated | ||
87 | -- https://github.com/RRethy/vim-illuminate/issues/111 | ||
88 | require("illuminate").on_attach(client) | ||
89 | end | 84 | end |
90 | 85 | ||
91 | -- nvim-cmp supports additional completion capabilities, so broadcast that to servers | 86 | -- nvim-cmp supports additional completion capabilities, so broadcast that to servers |
@@ -211,7 +206,7 @@ return { | |||
211 | { | 206 | { |
212 | "j-hui/fidget.nvim", | 207 | "j-hui/fidget.nvim", |
213 | tag = "legacy", | 208 | tag = "legacy", |
214 | event = "LspAttach", | 209 | event = "VeryLazy", |
215 | opts = { | 210 | opts = { |
216 | text = { | 211 | text = { |
217 | spinner = "triangle", | 212 | spinner = "triangle", |
@@ -224,13 +219,4 @@ return { | |||
224 | "simrat39/rust-tools.nvim", | 219 | "simrat39/rust-tools.nvim", |
225 | event = "LspAttach", | 220 | event = "LspAttach", |
226 | }, | 221 | }, |
227 | -- { | ||
228 | -- "RRethy/vim-illuminate", | ||
229 | -- opts = { | ||
230 | -- filetypes_denylist = { | ||
231 | -- 'NvimTree', | ||
232 | -- 'fugitive', | ||
233 | -- }, | ||
234 | -- }, | ||
235 | -- }, | ||
236 | } | 222 | } |