mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/hlchunk: init
This commit is contained in:
parent
a183298bf6
commit
af76696a92
2 changed files with 115 additions and 0 deletions
42
plugins/by-name/hlchunk/default.nix
Normal file
42
plugins/by-name/hlchunk/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "hlchunk";
|
||||
packPathName = "hlchunk.nvim";
|
||||
package = "hlchunk-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
settingsExample = {
|
||||
chunk = {
|
||||
enable = true;
|
||||
use_treesitter = true;
|
||||
style.fg = "#91bef0";
|
||||
exclude_filetypes = {
|
||||
neo-tree = true;
|
||||
lazyterm = true;
|
||||
};
|
||||
chars = {
|
||||
horizontal_line = "─";
|
||||
vertical_line = "│";
|
||||
left_top = "╭";
|
||||
left_bottom = "╰";
|
||||
right_arrow = "─";
|
||||
};
|
||||
};
|
||||
indent = {
|
||||
chars = [ "│" ];
|
||||
use_treesitter = false;
|
||||
|
||||
style.fg = "#45475a";
|
||||
exclude_filetypes = {
|
||||
neo-tree = true;
|
||||
lazyterm = true;
|
||||
};
|
||||
};
|
||||
blank.enable = false;
|
||||
line_num = {
|
||||
use_treesitter = true;
|
||||
style = "#91bef0";
|
||||
};
|
||||
};
|
||||
}
|
73
tests/test-sources/plugins/by-name/hlchunk/default.nix
Normal file
73
tests/test-sources/plugins/by-name/hlchunk/default.nix
Normal file
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.hlchunk.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.hlchunk = {
|
||||
enable = true;
|
||||
|
||||
# https://github.com/shellRaining/hlchunk.nvim/tree/main?tab=readme-ov-file#setup
|
||||
settings =
|
||||
let
|
||||
modDefaultConfig = {
|
||||
enable = false;
|
||||
style = { };
|
||||
notify = false;
|
||||
priority = 0;
|
||||
exclude_filetypes = {
|
||||
aerial = true;
|
||||
dashboard = true;
|
||||
# ...
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
chunk = modDefaultConfig;
|
||||
indent = modDefaultConfig;
|
||||
line_num = modDefaultConfig;
|
||||
blank = modDefaultConfig;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.hlchunk = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
chunk = {
|
||||
enable = true;
|
||||
use_treesitter = true;
|
||||
style.fg = "#91bef0";
|
||||
exclude_filetypes = {
|
||||
neo-tree = true;
|
||||
lazyterm = true;
|
||||
};
|
||||
chars = {
|
||||
horizontal_line = "─";
|
||||
vertical_line = "│";
|
||||
left_top = "╭";
|
||||
left_bottom = "╰";
|
||||
right_arrow = "─";
|
||||
};
|
||||
};
|
||||
indent = {
|
||||
chars = [ "│" ];
|
||||
use_treesitter = false;
|
||||
|
||||
style.fg = "#45475a";
|
||||
exclude_filetypes = {
|
||||
neo-tree = true;
|
||||
lazyterm = true;
|
||||
};
|
||||
};
|
||||
blank.enable = false;
|
||||
line_num = {
|
||||
use_treesitter = true;
|
||||
style = "#91bef0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue