Separate Vimscript from Lua
This commit is contained in:
parent
591b158000
commit
141d80080d
2 changed files with 5 additions and 12 deletions
|
@ -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)
|
|
||||||
|
|
5
.config/nvim/plugin/autocmds.vim
Normal file
5
.config/nvim/plugin/autocmds.vim
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
augroup formatting
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWritePre * retab!
|
||||||
|
autocmd BufWritePre *.py Black
|
||||||
|
augroup END
|
Loading…
Reference in a new issue