aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-05 12:30:25 -0800
committerGitHub <noreply@github.com>2021-01-05 12:30:25 -0800
commit81d88d4a17fff4e072b6f4f58eca482f60f78ea2 (patch)
treea887d9dbff09b57351de0512e90db23436261144
parentMerge pull request #539 from mjlbach/fix_vimls_docs (diff)
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-81d88d4a17fff4e072b6f4f58eca482f60f78ea2.tar
nvim-lspconfig-81d88d4a17fff4e072b6f4f58eca482f60f78ea2.tar.gz
nvim-lspconfig-81d88d4a17fff4e072b6f4f58eca482f60f78ea2.tar.bz2
nvim-lspconfig-81d88d4a17fff4e072b6f4f58eca482f60f78ea2.tar.lz
nvim-lspconfig-81d88d4a17fff4e072b6f4f58eca482f60f78ea2.tar.xz
nvim-lspconfig-81d88d4a17fff4e072b6f4f58eca482f60f78ea2.tar.zst
nvim-lspconfig-81d88d4a17fff4e072b6f4f58eca482f60f78ea2.zip
Merge pull request #542 from theHamsta/fix-sumneko-config-syntax-error
Fix syntax error for sumneko_lua in CONFIG.md
-rw-r--r--CONFIG.md8
-rw-r--r--lua/lspconfig/sumneko_lua.lua2
2 files changed, 8 insertions, 2 deletions
diff --git a/CONFIG.md b/CONFIG.md
index ea566087..ee8f5b52 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -4778,7 +4778,7 @@ end
-- set the path to the sumneko installation; if you previously installed via the now deprecated :LspInstall, use
local sumneko_root_path = vim.fn.stdpath('cache')..'/lspconfig/sumneko_lua/lua-language-server'
-local sumneko_binary = sumneko_root_path.."/bin/"..system_name.."/lua-language-server
+local sumneko_binary = sumneko_root_path.."/bin/"..system_name.."/lua-language-server"
require'lspconfig'.sumneko_lua.setup {
cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"};
@@ -4953,6 +4953,12 @@ This server accepts configuration via the `settings` key.
null
+- **`Lua.runtime.plugin`**: `string`
+
+ Default: `".vscode/lua/plugin.lua"`
+
+ null
+
- **`Lua.runtime.special`**: `object`
null
diff --git a/lua/lspconfig/sumneko_lua.lua b/lua/lspconfig/sumneko_lua.lua
index dcfb68c7..c42689e2 100644
--- a/lua/lspconfig/sumneko_lua.lua
+++ b/lua/lspconfig/sumneko_lua.lua
@@ -36,7 +36,7 @@ end
-- set the path to the sumneko installation; if you previously installed via the now deprecated :LspInstall, use
local sumneko_root_path = vim.fn.stdpath('cache')..'/lspconfig/sumneko_lua/lua-language-server'
-local sumneko_binary = sumneko_root_path.."/bin/"..system_name.."/lua-language-server
+local sumneko_binary = sumneko_root_path.."/bin/"..system_name.."/lua-language-server"
require'lspconfig'.sumneko_lua.setup {
cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"};