Skip to content

vim.opt.whichwrap:append("<>[]hl") how to add the append in options? #2870

Answered by MattSturgeon
niksingh710 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niksingh710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants