diff options
| author | jdhao <jdhao@hotmail.com> | 2022-01-28 13:13:01 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-01-28 13:13:01 +0800 |
| commit | 597b11638f2adbc740341fbb1abfba78184717ba (patch) | |
| tree | 455b3bef571c5ea20ae42a03bf58ccf9ebe22245 /lua/config/lsp.lua | |
| parent | 694f4d0ca169ef60099026f715d86a43f261a5ea (diff) | |
chore: use local variable lspconfig
Diffstat (limited to 'lua/config/lsp.lua')
| -rw-r--r-- | lua/config/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 9e27811..55ca490 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -130,7 +130,7 @@ if vim.g.is_mac or vim.g.is_linux and sumneko_binary_path ~= "" then table.insert(runtime_path, "lua/?.lua") table.insert(runtime_path, "lua/?/init.lua") - require("lspconfig").sumneko_lua.setup({ + lspconfig.sumneko_lua.setup({ on_attach = custom_attach, cmd = { sumneko_binary_path, "-E", sumneko_root_path .. "/main.lua" }, settings = { |
