From 275f952136e33327c04aff3e59fc4aa5050d8753 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Mon, 24 Feb 2020 13:49:12 +0900 Subject: lua language server: add a more detailed description of cmd ref: #136 --- lua/nvim_lsp/sumneko_lua.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lua/nvim_lsp/sumneko_lua.lua') 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]]; -- cgit v1.2.3-70-g09d2