mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-31 16:14:46 +02:00
helpers: Add mkLua,mkLuaFn (defaultNullOpts or not) (#866)
This makes it such that defaultNullOpts.mkStr never represents a lua string, easing documenting where a string is a lua string vs lua code.
This commit is contained in:
parent
f2e808a519
commit
abd1c4007a
5 changed files with 70 additions and 45 deletions
|
@ -33,7 +33,7 @@ in {
|
|||
|
||||
disableInReplaceMode = helpers.defaultNullOpts.mkBool true "Disable in replace mode.";
|
||||
|
||||
ignoredNextChar = helpers.defaultNullOpts.mkStr "[=[[%w%%%'%[%\"%.%`%$]]=]" ''
|
||||
ignoredNextChar = helpers.defaultNullOpts.mkLua "[=[[%w%%%'%[%\"%.%`%$]]=]" ''
|
||||
Regexp to ignore if it matches the next character.
|
||||
'';
|
||||
|
||||
|
@ -81,7 +81,7 @@ in {
|
|||
disable_in_macro = cfg.disableInMacro;
|
||||
disable_in_visualblock = cfg.disableInVisualblock;
|
||||
disable_in_replace_mode = cfg.disableInReplaceMode;
|
||||
ignored_next_char = helpers.mkRaw cfg.ignoredNextChar;
|
||||
ignored_next_char = cfg.ignoredNextChar;
|
||||
enable_moveright = cfg.enableMoveright;
|
||||
enable_afterquote = cfg.enableAfterQuote;
|
||||
enable_check_bracket_line = cfg.enableCheckBracketLine;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue