From c421a7451b99f854d64b1e25963fcab3e305f310 Mon Sep 17 00:00:00 2001 From: Jasper Bok Date: Tue, 27 Feb 2024 18:09:47 +0100 Subject: [PATCH] Add Asciidoc augroup to neovim config --- 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 4429fd6..818f3cc 100644 --- a/private_dot_config/nvim/init.lua +++ b/private_dot_config/nvim/init.lua @@ -85,6 +85,13 @@ vim.api.nvim_create_autocmd('FileType', { command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2' }) +local asciidoc_augroup = vim.api.nvim_create_augroup('filetype_asciidoc', {clear = true}) +vim.api.nvim_create_autocmd('FileType', { + pattern = 'asciidoc', + group = asciidoc_augroup, + command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2|setlocal tw=72|setlocal spell|setlocal spelllang=nl' +}) + -- ---------------------------------- -- Plugins -- ----------------------------------