pkg(nixvim): Add trouble plugin
This commit is contained in:
parent
d794974e0c
commit
bf50c2b05c
2 changed files with 30 additions and 3 deletions
|
|
@ -6,9 +6,6 @@
|
||||||
# flash = {
|
# flash = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# };
|
# };
|
||||||
# trouble = {
|
|
||||||
# enable = true;
|
|
||||||
# };
|
|
||||||
# todo-comments = {
|
# todo-comments = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# };
|
# };
|
||||||
|
|
|
||||||
30
pkgs/nixvim/editor/trouble.nix
Normal file
30
pkgs/nixvim/editor/trouble.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue