[Colorschemes] How to remove unwanted item from the list of colorschemes. #3695
-
I want to keep only a few I want and not show them all. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
I used to have a function as can be seen here in my dots. Recently, I tried this in a testing configuration local builtins = {}
for name, _ in vim.fs.dir("$VIMRUNTIME/colors/") do
if name:match("*.txt") then
break
else
name = name:match(".*%.lua$") or name:match(".*%.vim$")
table.insert(builtins, name)
end
end
vim.opt.wildignore:append(builtins) in my |
Beta Was this translation helpful? Give feedback.
-
I would like to ask an additional question about lazyvim's reload function. If I modify and save plugin/xxx.lua, I will be prompted to reload this configuration in the upper right corner. But the actual effect is not using the latest configuration, so what does this reload really do? |
Beta Was this translation helpful? Give feedback.
-
Recently, telescope added the ignore_builtins option: nvim-telescope/telescope.nvim#3155 It's now as simple as |
Beta Was this translation helpful? Give feedback.
Based on your code, I implemented this idea that you are really cool.