repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/std/ignored.lua
Rawlocal filetypes = {
'NvimTree',
'Outline',
'TelescopePrompt',
'TelescopeResults',
'Trouble',
'WhichKey',
'^git.*',
'flash_prompt',
'help',
'lazy',
'noice',
'notify',
'oil',
'spectre_panel',
'starter',
'svn',
'toggleterm',
}
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,
}