In a neovim init.lua
config, I know that I can append to a string like so:
vim.opt.wildignore:append("*/node_modules/*,*/vendor/*,*/venv/*,*/.venv/*,*/target/*")
However, I'm getting errors with the following attempts to append extends:#
to the default value of listchars
:
vim.opt.listchars:append("extends:#")
vim.opt.listchars:append(",extends:#")
vim.opt.listchars:append({"extends:#"})
vim.opt.listchars:append({",extends:#"})
vim.opt.listchars = vim.opt.listchars + "extends:#"
vim.opt.listchars = vim.opt.listchars + ",extends:#"
I thought it was perhaps because it's a mapping, but this also failed:
vim.opt.listchars:append({extends = "#"})
EDIT: ^^ this now works on 0.5.1. See below.
I don't see an :extend()
method, but tried it anyway and it also fails.
It accepts this as valid: vim.opt.listchars = "extends:#"
What am I doing wrong here?
vim.opt.listchars = { space = '_', tab = '>~' }
but not how to append to the default.