Add diagnostics plugin and icons to Neovim configuration
This commit is contained in:
parent
1178b3ee53
commit
2d0d477a99
4 changed files with 193 additions and 139 deletions
25
hosts/totsugeki/home-manager/development/nixvim/trouble.nix
Normal file
25
hosts/totsugeki/home-manager/development/nixvim/trouble.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ ... }: {
|
||||
programs.nixvim = {
|
||||
plugins.trouble = {
|
||||
enable = true;
|
||||
settings = {
|
||||
auto_refresh = true;
|
||||
focus = true;
|
||||
follow = false;
|
||||
keys = {
|
||||
"<cr>" = "jump_close";
|
||||
"s" = "jump_vsplit";
|
||||
"S" = "jump_split";
|
||||
};
|
||||
win = {
|
||||
type = "float";
|
||||
border = "rounded";
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = [{
|
||||
action = "<cmd>Trouble diagnostics toggle<cr>";
|
||||
key = "<leader>dg";
|
||||
}];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue