summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/setup/lspconfig.lua7
1 files changed, 4 insertions, 3 deletions
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! * <buffer>
- autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()
+ au! * <buffer>
+ au BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()
augroup END
]])
end