summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup/lspconfig.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/setup/lspconfig.lua')
-rw-r--r--.config/nvim/lua/setup/lspconfig.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua
index e65010d..488d35b 100644
--- a/.config/nvim/lua/setup/lspconfig.lua
+++ b/.config/nvim/lua/setup/lspconfig.lua
@@ -2,11 +2,13 @@ require("nvim-lsp-installer").setup {}
local lspconfig = require("lspconfig")
local function on_attach()
- vim.cmd('doautocmd User lspAttached')
- vim.cmd('augroup Format')
- vim.cmd('autocmd! * <buffer>')
- vim.cmd('autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()')
- vim.cmd('augroup END')
+ vim.cmd([[
+ doautocmd User lspAttached')
+ augroup Format
+ autocmd! * <buffer>
+ autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()
+ augroup END
+ ]])
end
lspconfig.sumneko_lua.setup {