diff --git a/nvim/lspconfig.vimrc b/nvim/lspconfig.vimrc index fb72570..1b7e38f 100644 --- a/nvim/lspconfig.vimrc +++ b/nvim/lspconfig.vimrc @@ -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 }