summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup/lspconfig.lua
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-10-06 22:43:10 +0200
committeradam <56338480+adastx@users.noreply.github.com>2022-10-06 22:43:10 +0200
commit872fe99c314fa7ad5084673a38f8e09d4291d8a0 (patch)
tree083f2e6aed3b8eb16db2b9b8bb0f7ee14932e66f /.config/nvim/lua/setup/lspconfig.lua
parent14e9e356c390250349bce9e0d32336126b9e4797 (diff)
nvim: global statusline, winbar, cmdheight
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 {