aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/sumneko_lua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim_lsp/sumneko_lua.lua')
-rw-r--r--lua/nvim_lsp/sumneko_lua.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/nvim_lsp/sumneko_lua.lua b/lua/nvim_lsp/sumneko_lua.lua
index f88c61c8..d799510b 100644
--- a/lua/nvim_lsp/sumneko_lua.lua
+++ b/lua/nvim_lsp/sumneko_lua.lua
@@ -111,6 +111,16 @@ Lua language server. **By default, this doesn't have a `cmd` set.** This is
because it doesn't provide a global binary. We provide an installer for Linux
and macOS using `:LspInstall`. If you wish to install it yourself, [here is a
guide](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run).
+So you should set `cmd` yourself like this.
+
+```lua
+require'nvim_lsp'.sumneko_lua.setup{
+ cmd = {"path", "to", "cmd"};
+ ...
+}
+```
+
+If you install via our installer, if you execute `:LspInstallInfo sumneko_lua`, you can know `cmd` value.
]];
default_config = {
root_dir = [[root_pattern(".git") or os_homedir]];