From a6f6372b0fb0c63016c000da1ca4cb4d17df72ef Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Mon, 21 Mar 2022 15:04:43 -0500 Subject: [PATCH] Autoformat go and rust on save --- nvim/lspconfig.vimrc | 2 ++ 1 file changed, 2 insertions(+) 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 }