vim.opt.whichwrap:append("<>[]hl")
how to add the append in options?
#2870
Answered
by
MattSturgeon
niksingh710
asked this question in
Q&A
-
is there some nix way to do this or i have to use extraConfigLua = # lua
''
vim.opt.whichwrap:append("<>[]hl")
vim.opt.listchars:append("space:·")
''; ? |
Beta Was this translation helpful? Give feedback.
Answered by
MattSturgeon
Jan 20, 2025
Replies: 1 comment
-
The nix-options for setting vim-options assume all values are configured in nix, so there's no real way to Of course, if the values are all set in nix, then the module system will merge the list definitions automatically. You can also manipulate the merge order using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
niksingh710
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The nix-options for setting vim-options assume all values are configured in nix, so there's no real way to
:append
or:prepend
. AFAIK your lua snippet is the already best approach.Of course, if the values are all set in nix, then the module system will merge the list definitions automatically.
You can also manipulate the merge order using
lib.mkOrder
,mkBefore
,mkAfter
.