From fa1e2808d21c07eddc0369d3d41263df2bff8daa Mon Sep 17 00:00:00 2001 From: Jasper Bok Date: Wed, 3 Aug 2022 16:52:03 +0200 Subject: [PATCH] Add HTML augroup --- private_dot_config/nvim/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/private_dot_config/nvim/init.lua b/private_dot_config/nvim/init.lua index 2d030a2..020f7b6 100644 --- a/private_dot_config/nvim/init.lua +++ b/private_dot_config/nvim/init.lua @@ -62,6 +62,13 @@ local markdown_augroup = vim.api.nvim_create_augroup('filetype_markdown', {clear vim.api.nvim_create_autocmd('FileType', { pattern = 'markdown', 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' })