Replies: 1 comment
-
UpdateAfter reading some more ( It appears that what I needed to do is: vim.options.listchars = "trail:·,tab:» ";This works, but it's a mix of three different languages (Nix, Lua, Vim), and the correct syntax is not easily discoverable. Now, if vim.options.listchars = { trail = "·"; tab = "» "; };This is pure Nix! Do you see any downsides to changing the way Or maybe use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried setting
vim.opt.listcharsas:This results in an error on nvim startup.
Looking at the generated
init.luathe options are translated into:While
vim.o.listis a valid option, it appears thatvim.o.listcharsis not. It should instead be referred to asvim.opt.listchars. At the same time,vim.opt.*seems to be valid for any options that are currently accessed viavim.o.*.My workaround is to import a one-liner lua file via
vim.options.extraLuaFiles.But that got me thinking:
One such potential pitfall is that in neovim, as an example
:lua print(vim.o.tabstop)prints out 2, whereas:lua print(vim.opt.tabstop)prints outtable: 0x7ff58f08dee8.But setting
:lua vim.opt.tabstop = 8does take effect as confirmed by:lua print(vim.o.tabstop)printing out 8.Beta Was this translation helpful? Give feedback.
All reactions