Add HTML augroup

main
Jasper Bok 2022-08-03 16:52:03 +02:00
parent 0bd7c6db6c
commit fa1e2808d2
1 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,13 @@ local markdown_augroup = vim.api.nvim_create_augroup('filetype_markdown', {clear
vim.api.nvim_create_autocmd('FileType', { vim.api.nvim_create_autocmd('FileType', {
pattern = 'markdown', pattern = 'markdown',
group = markdown_augroup, group = markdown_augroup,
command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2|setlocal textwidth=80'
})
local html_augroup = vim.api.nvim_create_augroup('filetype_html', {clear = true})
vim.api.nvim_create_autocmd('FileType', {
pattern = 'html|htmldjango',
group = html_augroup,
command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2' command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2'
}) })