fix-nvim #25

Merged
jalil merged 2 commits from fix-nvim into main 2024-07-16 23:17:09 +02:00
2 changed files with 11 additions and 20 deletions

View file

@ -74,25 +74,14 @@ in
} }
{ {
mode = "n"; mode = "n";
key = "<leader>xx"; key = "<leader>xs";
action = action =
mkRaw mkRaw
# lua # lua
'' ''
require('trouble').toggle function() require('trouble').toggle_preview('symbols') end
''; '';
options.desc = "Toggle trouble"; options.desc = "Toggle Diagnostics trouble";
}
{
mode = "n";
key = "<leader>xw";
action =
mkRaw
# lua
''
function() require('trouble').toggle('workspace_diagnostics') end
'';
options.desc = "Toggle Workspace trouble";
} }
{ {
mode = "n"; mode = "n";
@ -101,9 +90,9 @@ in
mkRaw mkRaw
# lua # lua
'' ''
function() require('trouble').toggle('document_diagnostics') end function() require('trouble').toggle_preview('diagnostics') end
''; '';
options.desc = "Toggle Document trouble"; options.desc = "Toggle Diagnostics trouble";
} }
{ {
mode = "n"; mode = "n";
@ -112,7 +101,7 @@ in
mkRaw mkRaw
# lua # lua
'' ''
function() require('trouble').toggle('quickfix') end function() require('trouble').toggle_preview('quickfix') end
''; '';
options.desc = "Toggle Quickfix trouble"; options.desc = "Toggle Quickfix trouble";
} }
@ -123,7 +112,7 @@ in
mkRaw mkRaw
# lua # lua
'' ''
function() require('trouble').toggle('loclist') end function() require('trouble').toggle_preview('loclist') end
''; '';
options.desc = "Toggle Loclist trouble"; options.desc = "Toggle Loclist trouble";
} }
@ -134,7 +123,7 @@ in
mkRaw mkRaw
# lua # lua
'' ''
function() require('trouble').toggle('lsp_references') end function() require('trouble').toggle_preview('lsp_references') end
''; '';
options.desc = "Toggle lsp References trouble"; options.desc = "Toggle lsp References trouble";
} }

View file

@ -189,7 +189,9 @@ in
autoEvalInputs = true; autoEvalInputs = true;
}; };
}; };
ruff-lsp.enable = true; pyright.enable = true;
# ruff-lsp.enable = true;
ruff.enable = true;
taplo.enable = true; taplo.enable = true;
# texlab.enable = true; # Not writing TeX rn # texlab.enable = true; # Not writing TeX rn
typos-lsp.enable = true; typos-lsp.enable = true;