diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2021-12-04 18:13:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-04 09:13:09 -0800 |
| commit | 367f490ac56b4aa794196fd786d7cd0b324b4256 (patch) | |
| tree | f9bca7bb6e5e338474236810f391fbe765ef26f6 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-367f490ac56b4aa794196fd786d7cd0b324b4256.tar nvim-lspconfig-367f490ac56b4aa794196fd786d7cd0b324b4256.tar.gz nvim-lspconfig-367f490ac56b4aa794196fd786d7cd0b324b4256.tar.bz2 nvim-lspconfig-367f490ac56b4aa794196fd786d7cd0b324b4256.tar.lz nvim-lspconfig-367f490ac56b4aa794196fd786d7cd0b324b4256.tar.xz nvim-lspconfig-367f490ac56b4aa794196fd786d7cd0b324b4256.tar.zst nvim-lspconfig-367f490ac56b4aa794196fd786d7cd0b324b4256.zip | |
docs(lua): simplify cmd documentation (#1539)
`lua-language-server` can now be started with a simple call to the
eponymous binary. assume that can be found in `$PATH`.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/sumneko_lua.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lua/lspconfig/server_configurations/sumneko_lua.lua b/lua/lspconfig/server_configurations/sumneko_lua.lua index 23e63fc2..451df601 100644 --- a/lua/lspconfig/server_configurations/sumneko_lua.lua +++ b/lua/lspconfig/server_configurations/sumneko_lua.lua @@ -16,9 +16,7 @@ https://github.com/sumneko/lua-language-server Lua language server. -`lua-language-server` can be installed by following the instructions [here](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run). - -**By default, lua-language-server doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your unzipped and compiled lua-language-server. +`lua-language-server` can be installed by following the instructions [here](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run). The default `cmd` assumes that the `lua-language-server` binary can be found in `$PATH`. ```lua local runtime_path = vim.split(package.path, ';') @@ -26,7 +24,6 @@ table.insert(runtime_path, "lua/?.lua") table.insert(runtime_path, "lua/?/init.lua") require'lspconfig'.sumneko_lua.setup { - cmd = { "/path/to/lua-language-server" }, -- full path to the binary settings = { Lua = { runtime = { |
