From d13382fcdbc0565c4daf628d6d76cf415ffe4080 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Fri, 7 Oct 2022 00:29:16 +0200 Subject: nvim: fixed syntax error --- .config/nvim/lua/setup/lspconfig.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.config/nvim') diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua index 488d35b..e2c68da 100644 --- a/.config/nvim/lua/setup/lspconfig.lua +++ b/.config/nvim/lua/setup/lspconfig.lua @@ -3,10 +3,11 @@ local lspconfig = require("lspconfig") local function on_attach() vim.cmd([[ - doautocmd User lspAttached') + doautocmd User lspAttached + augroup Format - autocmd! * - autocmd BufWritePre lua vim.lsp.buf.formatting_sync() + au! * + au BufWritePre lua vim.lsp.buf.formatting_sync() augroup END ]]) end -- cgit v1.2.3-70-g09d2