diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-03-05 12:32:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-05 12:32:11 +0900 |
| commit | 71b6df6667bf13db86267987620ca3e39b595a69 (patch) | |
| tree | 82e99c7fdea2899fdff7cfe918f713a9e06f1167 | |
| parent | [docgen] Update README.md (diff) | |
| parent | lua language server: add a more detailed description of cmd (diff) | |
| download | nvim-lspconfig-71b6df6667bf13db86267987620ca3e39b595a69.tar nvim-lspconfig-71b6df6667bf13db86267987620ca3e39b595a69.tar.gz nvim-lspconfig-71b6df6667bf13db86267987620ca3e39b595a69.tar.bz2 nvim-lspconfig-71b6df6667bf13db86267987620ca3e39b595a69.tar.lz nvim-lspconfig-71b6df6667bf13db86267987620ca3e39b595a69.tar.xz nvim-lspconfig-71b6df6667bf13db86267987620ca3e39b595a69.tar.zst nvim-lspconfig-71b6df6667bf13db86267987620ca3e39b595a69.zip | |
Merge pull request #147 from h-michael/lua-lsp
lua language server: add a more detailed description of cmd
| -rw-r--r-- | lua/nvim_lsp/sumneko_lua.lua | 10 |
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]]; |
