vimrc: added specific formater into markdown

This commit is contained in:
Marcin Woźniak 2025-02-13 23:26:41 +01:00
parent 882e6c58af
commit cb54a2309a

View File

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