repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/std/ignored.lua
Rawlocal filetypes = {
'Outline',
'TelescopePrompt',
'TelescopeResults',
'WhichKey',
'flash_prompt',
'^git.*',
'help',
'lazy',
'noice',
'notify',
'oil',
'spectre_panel',
'starter',
'svn',
'toggleterm',
'Trouble',
}
local buftypes = {
'acwrite',
'help',
'neotree',
'nofile',
'noice',
'prompt',
'quickfix',
}
local as_kv = function(list)
local tbl = {}
for _, value in ipairs(list) do
vim.validate { value = { value, 'string'} }
tbl[value] = true
end
return tbl
end
local filetypes_kv = as_kv(filetypes)
local buftypes_kv = as_kv(buftypes)
return {
filetypes = filetypes,
filetypes_kv = filetypes_kv,
buftypes = buftypes,
buftypes_kv = buftypes_kv,
}