mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
treewide: fix typos (#1217)
This commit is contained in:
parent
e9564ac336
commit
233feeb8d2
50 changed files with 123 additions and 96 deletions
|
@ -8,7 +8,7 @@
|
|||
with lib; let
|
||||
cfg = config.plugins.commentary;
|
||||
in {
|
||||
# TODO Add support for aditional filetypes. This requires autocommands!
|
||||
# TODO Add support for additional filetypes. This requires autocommands!
|
||||
|
||||
options = {
|
||||
plugins.commentary = {
|
||||
|
|
|
@ -73,7 +73,7 @@ in {
|
|||
keymapsDef;
|
||||
|
||||
autoReload = helpers.defaultNullOpts.mkBool false ''
|
||||
If true, the `coverage_file` for a langauge will be watched for changes after executing
|
||||
If true, the `coverage_file` for a language will be watched for changes after executing
|
||||
`:CoverageLoad` or `coverage.load()`.
|
||||
The file watcher will be stopped after executing `:CoverageClear` or `coverage.clear()`.
|
||||
'';
|
||||
|
|
|
@ -39,7 +39,7 @@ in {
|
|||
- search: regular search
|
||||
- fuzzy: fuzzy search
|
||||
- fun(str): custom search function that returns a pattern
|
||||
For example, to only match at the begining of a word:
|
||||
For example, to only match at the beginning of a word:
|
||||
function(str)
|
||||
return "\\<" .. str
|
||||
end
|
||||
|
@ -108,7 +108,7 @@ in {
|
|||
};
|
||||
|
||||
label = {
|
||||
uppercase = helpers.defaultNullOpts.mkBool true "allow upercase labels";
|
||||
uppercase = helpers.defaultNullOpts.mkBool true "allow uppercase labels";
|
||||
|
||||
exclude = helpers.defaultNullOpts.mkStr "" ''
|
||||
add any labels with the correct case here, that you want to exclude
|
||||
|
|
|
@ -25,7 +25,7 @@ with lib; let
|
|||
'';
|
||||
|
||||
modesAllowlist = mkListStr "[]" ''
|
||||
Modes to illuminate, this is overriden by `modes_denylist`.
|
||||
Modes to illuminate, this is overridden by `modes_denylist`.
|
||||
See `:help mode()` for possible values.
|
||||
'';
|
||||
|
||||
|
@ -36,7 +36,7 @@ with lib; let
|
|||
'';
|
||||
|
||||
providersRegexSyntaxAllowlist = mkListStr "[]" ''
|
||||
Syntax to illuminate, this is overriden by `providers_regex_syntax_denylist`.
|
||||
Syntax to illuminate, this is overridden by `providers_regex_syntax_denylist`.
|
||||
Only applies to the 'regex' provider.
|
||||
Use `:echo synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')`.
|
||||
'';
|
||||
|
@ -61,7 +61,7 @@ with lib; let
|
|||
'';
|
||||
|
||||
filetypesAllowlist = mkListStr "[]" ''
|
||||
Filetypes to illuminate, this is overriden by `filetypes_denylist`.
|
||||
Filetypes to illuminate, this is overridden by `filetypes_denylist`.
|
||||
'';
|
||||
};
|
||||
in {
|
||||
|
|
|
@ -49,7 +49,7 @@ in {
|
|||
positions/redraw signs.
|
||||
Lower values means that mark positions and signs will refresh much quicker, but may incur a
|
||||
higher performance penalty, whereas higher values may result in better performance, but may
|
||||
also cause noticable lag in signs updating.
|
||||
also cause noticeable lag in signs updating.
|
||||
'';
|
||||
|
||||
signPriority =
|
||||
|
|
|
@ -300,7 +300,7 @@ in {
|
|||
provided, the plugin will attempt to infer what the meanings of the symbols in your list
|
||||
are by their order.
|
||||
|
||||
For example, if you set `toDo.symbols` as `[" " "⧖" "✓"]`, `" "` will be assiged to
|
||||
For example, if you set `toDo.symbols` as `[" " "⧖" "✓"]`, `" "` will be assigned to
|
||||
`toDo.notStarted`, "⧖" will be assigned to `toDo.inProgress`, etc.
|
||||
If more than three symbols are specified, the first will be used as `notStarted`, the
|
||||
second will be used as `inProgress`, and the last will be used as `complete`.
|
||||
|
@ -317,7 +317,7 @@ in {
|
|||
provided, the plugin will attempt to infer what the meanings of the symbols in your list
|
||||
are by their order.
|
||||
|
||||
For example, if you set `toDo.symbols` as `[" " "⧖" "✓"]`, `" "` will be assiged to
|
||||
For example, if you set `toDo.symbols` as `[" " "⧖" "✓"]`, `" "` will be assigned to
|
||||
`toDo.notStarted`, "⧖" will be assigned to `toDo.inProgress`, etc.
|
||||
If more than three symbols are specified, the first will be used as `notStarted`, the
|
||||
second will be used as `inProgress`, and the last will be used as `complete`.
|
||||
|
@ -334,7 +334,7 @@ in {
|
|||
provided, the plugin will attempt to infer what the meanings of the symbols in your list
|
||||
are by their order.
|
||||
|
||||
For example, if you set `toDo.symbols` as `[" " "⧖" "✓"]`, `" "` will be assiged to
|
||||
For example, if you set `toDo.symbols` as `[" " "⧖" "✓"]`, `" "` will be assigned to
|
||||
`toDo.notStarted`, "⧖" will be assigned to `toDo.inProgress`, etc.
|
||||
If more than three symbols are specified, the first will be used as `notStarted`, the
|
||||
second will be used as `inProgress`, and the last will be used as `complete`.
|
||||
|
|
|
@ -169,7 +169,7 @@ with helpers.vim-plugin;
|
|||
|
||||
show_mimetype_debug = helpers.defaultNullOpts.mkBool false ''
|
||||
Before any non-iostream output chunk, the mime-type for that output chunk is shown.
|
||||
Meant for debugging/plugin devlopment.
|
||||
Meant for debugging/plugin development.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -112,57 +112,66 @@ in {
|
|||
- `"vsnip"` (https://github.com/hrsh7th/vim-vsnip)
|
||||
'';
|
||||
|
||||
placeholderHighligt = helpers.defaultNullOpts.mkStr "DiagnosticHint" ''
|
||||
placeholderHighlight = helpers.defaultNullOpts.mkStr "DiagnosticHint" ''
|
||||
Placeholders highlights to use. If you don't want custom highlight, pass "None"
|
||||
'';
|
||||
|
||||
placeholdersText = {
|
||||
description = helpers.defaultNullOpts.mkStr "[TODO:description]" ''
|
||||
Placholder for description.
|
||||
Placeholder for description.
|
||||
'';
|
||||
|
||||
tparam = helpers.defaultNullOpts.mkStr "[TODO:tparam]" ''
|
||||
Placholder for tparam.
|
||||
Placeholder for tparam.
|
||||
'';
|
||||
|
||||
parameter = helpers.defaultNullOpts.mkStr "[TODO:parameter]" ''
|
||||
Placholder for parameter.
|
||||
Placeholder for parameter.
|
||||
'';
|
||||
|
||||
return = helpers.defaultNullOpts.mkStr "[TODO:return]" ''
|
||||
Placholder for return.
|
||||
Placeholder for return.
|
||||
'';
|
||||
|
||||
class = helpers.defaultNullOpts.mkStr "[TODO:class]" ''
|
||||
Placholder for class.
|
||||
Placeholder for class.
|
||||
'';
|
||||
|
||||
throw = helpers.defaultNullOpts.mkStr "[TODO:throw]" ''
|
||||
Placholder for throw.
|
||||
Placeholder for throw.
|
||||
'';
|
||||
|
||||
varargs = helpers.defaultNullOpts.mkStr "[TODO:varargs]" ''
|
||||
Placholder for varargs.
|
||||
Placeholder for varargs.
|
||||
'';
|
||||
|
||||
type = helpers.defaultNullOpts.mkStr "[TODO:type]" ''
|
||||
Placholder for type.
|
||||
Placeholder for type.
|
||||
'';
|
||||
|
||||
attribute = helpers.defaultNullOpts.mkStr "[TODO:attribute]" ''
|
||||
Placholder for attribute.
|
||||
Placeholder for attribute.
|
||||
'';
|
||||
|
||||
args = helpers.defaultNullOpts.mkStr "[TODO:args]" ''
|
||||
Placholder for args.
|
||||
Placeholder for args.
|
||||
'';
|
||||
|
||||
kwargs = helpers.defaultNullOpts.mkStr "[TODO:kwargs]" ''
|
||||
Placholder for kwargs.
|
||||
Placeholder for kwargs.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# TODO introduced 2024-03-07: remove 2024-05-07
|
||||
imports = [
|
||||
(
|
||||
mkRenamedOptionModule
|
||||
["plugins" "neogen" "placeholderHighligt"]
|
||||
["plugins" "neogen" "placeholderHighlight"]
|
||||
)
|
||||
];
|
||||
|
||||
config = let
|
||||
setupOptions = with cfg; {
|
||||
enabled = enable;
|
||||
|
@ -171,7 +180,7 @@ in {
|
|||
snippet_engine = snippetEngine;
|
||||
enable_placeholders = enablePlaceholders;
|
||||
placeholder_text = placeholdersText;
|
||||
placeholder_hl = placeholderHighligt;
|
||||
placeholder_hl = placeholderHighlight;
|
||||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
|
|
|
@ -20,7 +20,7 @@ in {
|
|||
'';
|
||||
|
||||
magicWindow = helpers.defaultNullOpts.mkBool true ''
|
||||
Give the window magic, when the window is splited horizontally, keep the distance between the
|
||||
Give the window magic, when the window is split horizontally, keep the distance between the
|
||||
current line and the top/bottom border of neovim unchanged.
|
||||
It's a bit like a floating window, but the window is indeed a normal window, without any
|
||||
floating attributes.
|
||||
|
|
|
@ -21,7 +21,7 @@ with lib; {
|
|||
|
||||
silent = mkOption {
|
||||
type = types.bool;
|
||||
description = "Wether nvim-osc52 keymaps should be silent";
|
||||
description = "Whether nvim-osc52 keymaps should be silent";
|
||||
default = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -384,7 +384,7 @@ in {
|
|||
"__unkeyed" = "birthtime";
|
||||
inherit (birthtime) highlight format;
|
||||
});
|
||||
buf_opions = cfg.bufOptions;
|
||||
buf_options = cfg.bufOptions;
|
||||
win_options = cfg.winOptions;
|
||||
default_file_explorer = cfg.defaultFileExplorer;
|
||||
restore_win_options = cfg.restoreWinOptions;
|
||||
|
|
|
@ -26,13 +26,13 @@ in {
|
|||
delay = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
description = "Delay in miliseconds";
|
||||
description = "Delay in milliseconds";
|
||||
};
|
||||
|
||||
increment = mkOption {
|
||||
type = types.int;
|
||||
default = 10;
|
||||
description = "Increment in miliseconds";
|
||||
description = "Increment in milliseconds";
|
||||
};
|
||||
|
||||
blend = mkOption {
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
package = helpers.mkPackageOption pluginName pkgs.vimPlugins.nvim-spider;
|
||||
|
||||
skipInsignificantPunctuation =
|
||||
helpers.defaultNullOpts.mkBool true "Whether to skip unsignificant punctuation.";
|
||||
helpers.defaultNullOpts.mkBool true "Whether to skip insignificant punctuation.";
|
||||
|
||||
keymaps = {
|
||||
silent = mkOption {
|
||||
|
|
|
@ -83,7 +83,7 @@ in {
|
|||
]
|
||||
)
|
||||
''
|
||||
The type of `content` depends on the secton `type`:
|
||||
The type of `content` depends on the section `type`:
|
||||
- "text" -> a list of strings or a function (`rawLua`) that requires a function that returns a table of strings
|
||||
- "mapping" -> a list of list of strings in the format:
|
||||
```nix
|
||||
|
|
|
@ -78,7 +78,7 @@ with lib; {
|
|||
helpers.defaultNullOpts.mkInt 60
|
||||
"Adjust timeouts in milliseconds for matchparen highlighting";
|
||||
|
||||
deffered = {
|
||||
deferred = {
|
||||
enable = helpers.defaultNullOpts.mkBool false ''
|
||||
Deferred highlighting improves cursor movement performance (for example, when using hjkl)
|
||||
by delaying highlighting for a short time and waiting to see if the cursor continues
|
||||
|
@ -145,6 +145,15 @@ with lib; {
|
|||
'';
|
||||
};
|
||||
|
||||
# TODO introduced 2024-03-07: remove 2024-05-07
|
||||
imports = [
|
||||
(
|
||||
mkRenamedOptionModule
|
||||
["plugins" "vim-matchup" "matchParen" "deffered"]
|
||||
["plugins" "vim-matchup" "matchParen" "deferred"]
|
||||
)
|
||||
];
|
||||
|
||||
config = let
|
||||
cfg = config.plugins.vim-matchup;
|
||||
in
|
||||
|
@ -170,9 +179,9 @@ with lib; {
|
|||
matchup_matchparen_stopline = cfg.matchParen.stopline;
|
||||
matchup_matchparen_timeout = cfg.matchParen.timeout;
|
||||
matchup_matchparen_insert_timeout = cfg.matchParen.insertTimeout;
|
||||
matchup_matchparen_deferred = cfg.matchParen.deffered.enable;
|
||||
matchup_matchparen_deferred_show_delay = cfg.matchParen.deffered.showDelay;
|
||||
matchup_matchparen_deferred_hide_delay = cfg.matchParen.deffered.hideDelay;
|
||||
matchup_matchparen_deferred = cfg.matchParen.deferred.enable;
|
||||
matchup_matchparen_deferred_show_delay = cfg.matchParen.deferred.showDelay;
|
||||
matchup_matchparen_deferred_hide_delay = cfg.matchParen.deferred.hideDelay;
|
||||
matchup_matchparen_hi_surround_always = cfg.matchParen.hiSurroundAlways;
|
||||
|
||||
matchup_motion_enabled = cfg.motion.enable;
|
||||
|
|
|
@ -139,7 +139,7 @@ with lib; {
|
|||
triggers =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(types.either (types.enum ["auto"]) (types.listOf types.str))
|
||||
''"auto"'' "automatically setup triggers, or specifiy a list manually";
|
||||
''"auto"'' "automatically setup triggers, or specify a list manually";
|
||||
|
||||
triggersNoWait =
|
||||
helpers.defaultNullOpts.mkNullable (types.listOf types.str)
|
||||
|
|
|
@ -58,7 +58,7 @@ in {
|
|||
'';
|
||||
|
||||
ignoreRegisters = helpers.defaultNullOpts.mkNullable (with types; listOf str) ''["_"]'' ''
|
||||
Define registeres to be ignored.
|
||||
Define registers to be ignored.
|
||||
By default the black hole register is ignored.
|
||||
'';
|
||||
|
||||
|
@ -125,12 +125,12 @@ in {
|
|||
This works regardless to your `&clipboard` setting.
|
||||
|
||||
This means, if `&clipboard` is set to `unnamed` and/or `unnamedplus`, if you yank
|
||||
something outside of Neovim, you can put it immediatly using `p` and it will be added to
|
||||
something outside of Neovim, you can put it immediately using `p` and it will be added to
|
||||
your yank ring.
|
||||
|
||||
If `&clipboard` is empty, if you yank something outside of Neovim, this will be the first
|
||||
value you'll have when cycling through the ring.
|
||||
Basicly, you can do `p` and then `<c-p>` to paste yanked text.
|
||||
Basically, you can do `p` and then `<c-p>` to paste yanked text.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue