mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 17:45:03 +02:00
plugins/lsp: move related plugins to by-name
This commit is contained in:
parent
91c6b62881
commit
8815180c62
23 changed files with 0 additions and 11 deletions
87
tests/test-sources/plugins/by-name/trouble/default.nix
Normal file
87
tests/test-sources/plugins/by-name/trouble/default.nix
Normal file
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.trouble.enable = true;
|
||||
};
|
||||
|
||||
lsp = {
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
servers.clangd.enable = true;
|
||||
};
|
||||
|
||||
plugins.trouble.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.trouble = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
position = "bottom";
|
||||
height = 10;
|
||||
width = 50;
|
||||
icons = true;
|
||||
mode = "workspace_diagnostics";
|
||||
fold_open = "";
|
||||
fold_closed = "";
|
||||
group = true;
|
||||
padding = true;
|
||||
action_keys = {
|
||||
close = "q";
|
||||
cancel = "<esc>";
|
||||
refresh = "r";
|
||||
jump = [
|
||||
"<cr>"
|
||||
"<tab>"
|
||||
];
|
||||
open_split = [ "<c-x>" ];
|
||||
open_vsplit = [ "<c-v>" ];
|
||||
open_tab = [ "<c-t>" ];
|
||||
jump_close = [ "o" ];
|
||||
toggle_mode = "m";
|
||||
toggle_preview = "P";
|
||||
hover = "K";
|
||||
preview = "p";
|
||||
close_folds = [
|
||||
"zM"
|
||||
"zm"
|
||||
];
|
||||
open_folds = [
|
||||
"zR"
|
||||
"zr"
|
||||
];
|
||||
toggle_fold = [
|
||||
"zA"
|
||||
"za"
|
||||
];
|
||||
previous = "k";
|
||||
next = "j";
|
||||
};
|
||||
indent_lines = true;
|
||||
win_config = {
|
||||
border = "single";
|
||||
};
|
||||
auto_open = false;
|
||||
auto_close = false;
|
||||
auto_preview = true;
|
||||
auto_fold = false;
|
||||
auto_jump = [ "lsp_definitions" ];
|
||||
signs = {
|
||||
error = "";
|
||||
warning = "";
|
||||
hint = "";
|
||||
information = "";
|
||||
other = "";
|
||||
};
|
||||
use_diagnostic_signs = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.trouble = {
|
||||
enable = true;
|
||||
iconsPackage = null;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue