feat: migrating neovim

This commit is contained in:
gwg313 2024-08-16 16:11:56 -04:00
parent 86266f8205
commit 8d5e0e6566
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
47 changed files with 1964 additions and 222 deletions

View file

@ -0,0 +1,108 @@
{...}: {
programs.nixvim = {
plugins = {
trouble = {
enable = true;
settings = {
modes = {
preview_split = {
mode = "diagnostics";
preview = {
type = "split";
relative = "win";
position = "right";
size = 0.5;
};
};
preview_float = {
mode = "diagnostics";
preview = {
type = "float";
relative = "editor";
border = "rounded";
title = "Preview";
title_pos = "center";
position = [
0
(-2)
];
size = {
width = 0.3;
height = 0.3;
};
zindex = 200;
};
};
};
};
};
which-key.settings.spec = [
{
__unkeyed = "<leader>x";
mode = "n";
group = " Trouble";
}
];
};
keymaps = [
{
mode = "n";
key = "<leader>xx";
action = "<cmd>Trouble preview_split toggle<cr>";
options = {
desc = "Diagnostics toggle";
silent = true;
};
}
{
mode = "n";
key = "<leader>xX";
action = "<cmd>Trouble preview_split toggle filter.buf=0<cr>";
options = {
desc = "Buffer Diagnostics toggle";
silent = true;
};
}
{
mode = "n";
key = "<leader>us";
action = "<cmd>Trouble symbols toggle focus=false<cr>";
options = {
desc = "Symbols toggle";
silent = true;
};
}
{
mode = "n";
key = "<leader>xl";
action = "<cmd>Trouble lsp toggle focus=false win.position=right<cr>";
options = {
desc = "LSP Definitions / references / ... toggle";
silent = true;
};
}
{
mode = "n";
key = "<leader>xL";
action = "<cmd>Trouble loclist toggle<cr>";
options = {
desc = "Location List toggle";
silent = true;
};
}
{
mode = "n";
key = "<leader>xQ";
action = "<cmd>Trouble qflist toggle<cr>";
options = {
desc = "Quickfix List toggle";
silent = true;
};
}
];
};
}