Moved things around with nvim to allow multiple configurations, with nvims command

This commit is contained in:
Michael Housh
2023-09-23 20:39:33 -04:00
parent 6204b5f7b3
commit 8d396ff46f
37 changed files with 66 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
-- Remove all trailing whitespace on save
vim.api.nvim_exec([[
augroup TrimWhiteSpace
au!
autocmd BufWritePre * :%s/\s\+$//e
augroup END
]], false)
-- Prevent new line to also start with a comment
vim.api.nvim_exec([[
augroup NewLineComment
au!
au FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
augroup END
]], false)