mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
Add support for treesj, a plugin that splits and joins blocks of code, such as arrays and argument lists. Remove package field Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Finish sentence with full stop Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Add a blank line between options Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Rename `opts` to `langs` Shorten example settings Add blanklines between option declarations Add blank line between enable and settings Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Add blank line between enable and settings Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Use mkEnumFirstDefault instead of mkStr Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Use mkRaw instead of mkLuaFn Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Simplify langs option
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
empty = {
|
|
plugins.treesj.enable = true;
|
|
};
|
|
|
|
defaults = {
|
|
plugins.treesj = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
use_default_keymaps = true;
|
|
check_syntax_error = true;
|
|
max_join_length = 120;
|
|
cursor_behavior = "hold";
|
|
notify = true;
|
|
dot_repeat = true;
|
|
on_error.__raw = "nil";
|
|
langs = { };
|
|
};
|
|
};
|
|
};
|
|
|
|
example = {
|
|
plugins.treesj = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
cursor_behavior = "start";
|
|
max_join_length = 80;
|
|
dot_repeat = false;
|
|
langs = {
|
|
r = {
|
|
arguments.__raw = ''
|
|
require("treesj.langs.utils").set_preset_for_args({
|
|
both = {
|
|
separator = "comma",
|
|
},
|
|
split = {
|
|
recursive_ignore = { "subset" },
|
|
},
|
|
})
|
|
'';
|
|
parameters.__raw = ''
|
|
require("treesj.langs.utils").set_preset_for_args({
|
|
both = {
|
|
separator = "comma",
|
|
},
|
|
split = {
|
|
recursive_ignore = { "subset" },
|
|
},
|
|
})
|
|
'';
|
|
left_assignment = {
|
|
target_nodes = [
|
|
"arguments"
|
|
"parameters"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|