summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/nixvim.nix26
-rw-r--r--usecases/desktop/development/nixvim-dev.nix12
2 files changed, 26 insertions, 12 deletions
diff --git a/common/nixvim.nix b/common/nixvim.nix
index 768540e..abcd4d6 100644
--- a/common/nixvim.nix
+++ b/common/nixvim.nix
@@ -65,6 +65,8 @@ inputs:
65 65
66 colorschemes.melange.enable = true; 66 colorschemes.melange.enable = true;
67 67
68 diagnostics.virtual_lines = true;
69
68 keymaps = 70 keymaps =
69 let 71 let
70 toggle = key: option: { 72 toggle = key: option: {
@@ -304,6 +306,30 @@ inputs:
304 action = "<cmd>Trouble qflist toggle<cr>"; 306 action = "<cmd>Trouble qflist toggle<cr>";
305 options.desc = "Quickfix List (Trouble)"; 307 options.desc = "Quickfix List (Trouble)";
306 } 308 }
309
310 {
311 key = "<leader>sd";
312 action = ''
313 function()
314 local new_config = not vim.diagnostic.config().virtual_lines
315 vim.diagnostic.config({ virtual_lines = new_config })
316 end
317 '';
318 mode = "n";
319 lua = true;
320 options.desc = "LSP toggle inline diagnostics";
321 }
322 {
323 key = "<leader>sT";
324 action = ''
325 function()
326 vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
327 end
328 '';
329 mode = "n";
330 lua = true;
331 options.desc = "LSP toggle inline text";
332 }
307 ]; 333 ];
308 334
309 # TODO: 335 # TODO:
diff --git a/usecases/desktop/development/nixvim-dev.nix b/usecases/desktop/development/nixvim-dev.nix
index a20e0a8..fbfe106 100644
--- a/usecases/desktop/development/nixvim-dev.nix
+++ b/usecases/desktop/development/nixvim-dev.nix
@@ -58,12 +58,6 @@ _inputs:
58 } 58 }
59 59
60 { 60 {
61 key = "<leader>sd";
62 action = "require('lsp_lines').toggle";
63 lua = true;
64 options.desc = "LSP toggle inline diagnostics";
65 }
66 {
67 key = "<leader>sE"; 61 key = "<leader>sE";
68 action = "require('telescope.builtin').diagnostics"; 62 action = "require('telescope.builtin').diagnostics";
69 lua = true; 63 lua = true;
@@ -160,12 +154,6 @@ _inputs:
160 }; 154 };
161 }; 155 };
162 156
163 lsp-lines = {
164 enable = true;
165 # TODO: seems buggy with multiple sources?
166 # currentLine = true;
167 };
168
169 rustaceanvim = { 157 rustaceanvim = {
170 enable = true; 158 enable = true;
171 settings.server = { 159 settings.server = {