mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-03-30 18:01:52 +00:00
modules: clean up descriptions for colorizer & surround; add lazyload events to surround
This commit is contained in:
parent
b3d5964237
commit
ed2ce4bd02
3 changed files with 24 additions and 13 deletions
|
@ -102,11 +102,7 @@ in {
|
|||
|
||||
setupOpts = mkPluginSetupOption "colorizer" {
|
||||
filetypes = mkOption {
|
||||
description = ''
|
||||
Filetypes to enable on and their option overrides.
|
||||
|
||||
"*" means enable on all filetypes. Filetypes prefixed with "!" are disabled.
|
||||
'';
|
||||
type = attrsOf settingSubmodule;
|
||||
default = {};
|
||||
example = {
|
||||
"*" = {};
|
||||
|
@ -115,13 +111,21 @@ in {
|
|||
AARRGGBB = false;
|
||||
};
|
||||
};
|
||||
type = attrsOf settingSubmodule;
|
||||
description = ''
|
||||
Filetypes to enable on and their option overrides.
|
||||
|
||||
`"*"` means enable on all filetypes. Filetypes prefixed with `"!"` are disabled.
|
||||
'';
|
||||
};
|
||||
|
||||
user_default_options = mkOption {
|
||||
description = "Default options";
|
||||
default = {};
|
||||
type = settingSubmodule;
|
||||
default = {};
|
||||
description = ''
|
||||
`user_default_options` is the second parameter to nvim-colorizer's setup function.
|
||||
|
||||
Anything set here is the inverse of the previous setup configuration.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -14,10 +14,11 @@ in {
|
|||
vim = {
|
||||
lazy.plugins.nvim-surround = {
|
||||
package = "nvim-surround";
|
||||
|
||||
setupModule = "nvim-surround";
|
||||
inherit (cfg) setupOpts;
|
||||
|
||||
event = ["BufReadPre" "BufNewFile"];
|
||||
|
||||
keys = [
|
||||
(mkLznKey "i" cfg.setupOpts.keymaps.insert)
|
||||
(mkLznKey "i" cfg.setupOpts.keymaps.insert_line)
|
||||
|
|
|
@ -37,9 +37,13 @@ in {
|
|||
type = bool;
|
||||
default = false;
|
||||
description = ''
|
||||
nvim-surround: add/change/delete surrounding delimiter pairs with ease.
|
||||
Note that the default mappings deviate from upstream to avoid conflicts
|
||||
with nvim-leap.
|
||||
Whether to enable nvim-surround, Neovim plugin to add/change/delete
|
||||
surrounding delimiter pairs with ease.
|
||||
|
||||
::: {.note}
|
||||
The default mappings deviate from upstream to avoid conflicts with nvim-leap.
|
||||
You may change thsoe in your configuration if you do not use nvim-leap
|
||||
:::
|
||||
'';
|
||||
};
|
||||
setupOpts = mkPluginSetupOption "nvim-surround" {
|
||||
|
@ -61,7 +65,9 @@ in {
|
|||
useVendoredKeybindings = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Use alternative set of keybindings that avoids conflicts with other popular plugins, e.g. nvim-leap";
|
||||
description = ''
|
||||
Use alternative set of keybindings that avoids conflicts with other popular plugins, e.g. nvim-leap
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue