pkg(nixvim): Add trouble plugin

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent d794974e0c
commit bf50c2b05c
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 30 additions and 3 deletions

View file

@ -6,9 +6,6 @@
# flash = {
# enable = true;
# };
# trouble = {
# enable = true;
# };
# todo-comments = {
# enable = true;
# };

View file

@ -0,0 +1,30 @@
{...}: {
youthlic.plugins.trouble = {
enable = true;
settings = {
modes = {
lsp = {
win = {
position = "right";
};
};
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;
};
};
};
};
};
}