vimrc: added specific formater into markdown

This commit is contained in:
Marcin Woźniak 2025-02-13 23:26:41 +01:00
parent e3f6f785cb
commit 7e658dae57
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -668,7 +668,7 @@ autocmd BufWritePre *.tfvars lua vim.lsp.buf.format()
" Markdown
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us
autocmd BufWritePre *.md silent! undojoin | Neoformat
autocmd BufWritePre *.md silent! undojoin | Neoformat mdformat
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e