mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-08 16:24:32 +02:00
plugin/nvim-lightbulb: update and switch to mkNeovimPlugin
This commit is contained in:
parent
6d7e429537
commit
2594863af7
2 changed files with 295 additions and 62 deletions
97
tests/test-sources/plugins/lsp/nvim-lightbulb.nix
Normal file
97
tests/test-sources/plugins/lsp/nvim-lightbulb.nix
Normal file
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.nvim-lightbulb.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.nvim-lightbulb = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
priority = 10;
|
||||
hide_in_unfocused_buffer = true;
|
||||
link_highlights = true;
|
||||
validate_config = "auto";
|
||||
action_kinds = null;
|
||||
sign = {
|
||||
enabled = true;
|
||||
text = "💡";
|
||||
hl = "LightBulbSign";
|
||||
};
|
||||
virtual_text = {
|
||||
enabled = false;
|
||||
text = "💡";
|
||||
pos = "eol";
|
||||
hl = "LightBulbVirtualText";
|
||||
hl_mode = "combine";
|
||||
};
|
||||
float = {
|
||||
enabled = false;
|
||||
text = "💡";
|
||||
hl = "LightBulbFloatWin";
|
||||
win_opts = {};
|
||||
};
|
||||
status_text = {
|
||||
enabled = false;
|
||||
text = "💡";
|
||||
text_unavailable = "";
|
||||
};
|
||||
number = {
|
||||
enabled = false;
|
||||
hl = "LightBulbNumber";
|
||||
};
|
||||
line = {
|
||||
enabled = false;
|
||||
hl = "LightBulbLine";
|
||||
};
|
||||
autocmd = {
|
||||
enabled = false;
|
||||
updatetime = 200;
|
||||
pattern = ["*"];
|
||||
events = ["CursorHold" "CursorHoldI"];
|
||||
};
|
||||
ignore = {
|
||||
clients = [];
|
||||
ft = [];
|
||||
actions_without_kind = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.nvim-lightbulb = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
sign = {
|
||||
enabled = false;
|
||||
text = "";
|
||||
};
|
||||
virtual_text = {
|
||||
enabled = true;
|
||||
text = "";
|
||||
};
|
||||
float = {
|
||||
enabled = false;
|
||||
text = " ";
|
||||
win_opts.border = "rounded";
|
||||
};
|
||||
status_text = {
|
||||
enabled = false;
|
||||
text = " ";
|
||||
};
|
||||
number = {
|
||||
enabled = false;
|
||||
};
|
||||
line = {
|
||||
enabled = false;
|
||||
};
|
||||
autocmd = {
|
||||
enabled = true;
|
||||
updatetime = 200;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue