mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-15 13:31:09 +01:00
lensline: add module
Modular nvim codelens support with inline references, git blame and more
This commit is contained in:
parent
3e8c4c802c
commit
e6958a9699
2 changed files with 76 additions and 0 deletions
18
plugins/by-name/lensline/default.nix
Normal file
18
plugins/by-name/lensline/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "lensline";
|
||||
packPathName = "lensline.nvim";
|
||||
package = "lensline-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.khaneliman ];
|
||||
|
||||
settingsExample = {
|
||||
limits = {
|
||||
exclude_gitignored = false;
|
||||
max_lines = 500;
|
||||
max_lenses = 50;
|
||||
};
|
||||
debounce_ms = 250;
|
||||
focused_debounce_ms = 50;
|
||||
};
|
||||
}
|
||||
58
tests/test-sources/plugins/by-name/lensline/default.nix
Normal file
58
tests/test-sources/plugins/by-name/lensline/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lensline.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.lensline = {
|
||||
enable = true;
|
||||
settings = {
|
||||
profiles = [
|
||||
{
|
||||
name = "default";
|
||||
providers = [
|
||||
{
|
||||
name = "references";
|
||||
enabled = true;
|
||||
quiet_lsp = true;
|
||||
}
|
||||
{
|
||||
name = "last_author";
|
||||
enabled = true;
|
||||
cache_max_files = 50;
|
||||
}
|
||||
{
|
||||
name = "diagnostics";
|
||||
enabled = false;
|
||||
min_level = "WARN";
|
||||
}
|
||||
{
|
||||
name = "complexity";
|
||||
enabled = false;
|
||||
min_level = "L";
|
||||
}
|
||||
];
|
||||
style = {
|
||||
separator = " • ";
|
||||
highlight = "Comment";
|
||||
prefix = "┃ ";
|
||||
placement = "above";
|
||||
use_nerdfont = true;
|
||||
render = "all";
|
||||
};
|
||||
}
|
||||
];
|
||||
limits = {
|
||||
exclude = {
|
||||
};
|
||||
exclude_gitignored = true;
|
||||
max_lines = 1000;
|
||||
max_lenses = 70;
|
||||
};
|
||||
debounce_ms = 500;
|
||||
focused_debounce_ms = 150;
|
||||
debug_mode = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue