diff options
author | adam <56338480+adastx@users.noreply.github.com> | 2022-10-07 00:29:16 +0200 |
---|---|---|
committer | adam <56338480+adastx@users.noreply.github.com> | 2022-10-07 00:29:16 +0200 |
commit | d13382fcdbc0565c4daf628d6d76cf415ffe4080 (patch) | |
tree | bd59ce6f1d370264050baa135eb4125741143c23 /.config/nvim/lua | |
parent | a3ec6663fd64d7dac3090d63924cc9e1d211dd41 (diff) |
nvim: fixed syntax error
Diffstat (limited to '.config/nvim/lua')
-rw-r--r-- | .config/nvim/lua/setup/lspconfig.lua | 7 |
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 |