summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-10-07 00:29:16 +0200
committeradam <56338480+adastx@users.noreply.github.com>2022-10-07 00:29:16 +0200
commitd13382fcdbc0565c4daf628d6d76cf415ffe4080 (patch)
treebd59ce6f1d370264050baa135eb4125741143c23
parenta3ec6663fd64d7dac3090d63924cc9e1d211dd41 (diff)
nvim: fixed syntax error
-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