repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/std/ignored.lua
Raw-- TODO: add functions to add stuff to lists so that plugins can register these
-- and they get cleaned up when plugins get removed
local filetypes = {
'Outline',
'WhichKey',
'^git.*',
'help',
'ivy',
'lazy',
'notify',
'nvim-docs-view',
'oil',
'qf',
'svn',
}
local buftypes = {
'acwrite',
'help',
'prompt',
'nofile',
}
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,
}