Working on install script(s)

This commit is contained in:
2022-01-01 12:45:06 -05:00
parent da08e4eabe
commit 95d919811f
22 changed files with 46 additions and 3 deletions

15
nvim/lua/autocmd.lua Normal file
View File

@@ -0,0 +1,15 @@
-- 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)