mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
80 lines
1.6 KiB
Nix
80 lines
1.6 KiB
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
}
|