Separate Vimscript from Lua

This commit is contained in:
Lavender 2021-05-04 15:35:48 -07:00
parent 591b158000
commit 141d80080d
Signed by: endie
GPG key ID: CC5162D7C2146F01
2 changed files with 5 additions and 12 deletions

View file

@ -20,15 +20,3 @@ for setting, value in pairs(buffer_settings) do
vim.o[setting] = value vim.o[setting] = value
vim.bo[setting] = value vim.bo[setting] = value
end end
vim.api.nvim_exec([[
augroup python_format
autocmd!
autocmd BufWritePre *.py Black
augroup END
augroup fix_indent
autocmd!
autocmd BufWritePre * retab!
augroup END
]], false)

View file

@ -0,0 +1,5 @@
augroup formatting
autocmd!
autocmd BufWritePre * retab!
autocmd BufWritePre *.py Black
augroup END