nvim config updates
This commit is contained in:
parent
559939e2f4
commit
adc494721a
20 changed files with 1108 additions and 30 deletions
|
|
@ -30,9 +30,24 @@ local filetypes = {
|
|||
|
||||
for ext, ft in pairs(filetypes) do
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = "*." .. ext,
|
||||
callback = function()
|
||||
vim.bo.filetype = ft
|
||||
end,
|
||||
pattern = "*." .. ext,
|
||||
callback = function()
|
||||
vim.bo.filetype = ft
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
local spell_filetypes = {
|
||||
'markdown',
|
||||
'text',
|
||||
'gitcommit'
|
||||
}
|
||||
|
||||
for _, ext in ipairs(spell_filetypes) do
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = ext,
|
||||
callback = function()
|
||||
vim.cmd 'setlocal spell'
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue