Autoformat go and rust on save

This commit is contained in:
Daniel Lynn 2022-03-21 15:04:43 -05:00
parent 1c1c76b726
commit a6f6372b0f
Signed by: daniel
GPG Key ID: 28496A140E180A9D

View File

@ -1,3 +1,5 @@
autocmd BufWritePre *.go,*.rs lua vim.lsp.buf.formatting()
lua << EOF
local nvim_lsp = require('lspconfig')
local opts = { noremap=true, silent=true }