FULL LUA! plus some bugfixes

This commit is contained in:
Jacob Bohanon
2023-08-22 12:07:26 -04:00
parent a9164da3a8
commit 762faaef35
19 changed files with 70 additions and 370 deletions

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

@@ -0,0 +1,11 @@
vim.api.nvim_create_augroup('jbohanon', {clear=true})
vim.api.nvim_create_autocmd('BufWritePre', {
pattern = '*',
group = 'jbohanon',
command = '%s/\\s\\+$//e',
})
vim.api.nvim_create_autocmd('FileType', {
pattern = {'yaml','cpp'},
group = 'jbohanon',
command = 'setlocal tabstop=2 softtabstop=2 sw=2 expandtab indentkeys-=0# indentkeys-=<:>',
})