aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <github-actions@github.com>2022-05-21 03:49:41 +0000
committergithub-actions <github-actions@github.com>2022-05-21 03:49:41 +0000
commitd8da8bc106bba7a636aaa7f769af44ea6a669c23 (patch)
tree95d1b1ce1b6c082b8cf57e52cdb802019d8b83b1
parentdocs(sumneko_lua): fix usage of runtime_path (#1915) (diff)
downloadnvim-lspconfig-d8da8bc106bba7a636aaa7f769af44ea6a669c23.tar
nvim-lspconfig-d8da8bc106bba7a636aaa7f769af44ea6a669c23.tar.gz
nvim-lspconfig-d8da8bc106bba7a636aaa7f769af44ea6a669c23.tar.bz2
nvim-lspconfig-d8da8bc106bba7a636aaa7f769af44ea6a669c23.tar.lz
nvim-lspconfig-d8da8bc106bba7a636aaa7f769af44ea6a669c23.tar.xz
nvim-lspconfig-d8da8bc106bba7a636aaa7f769af44ea6a669c23.tar.zst
nvim-lspconfig-d8da8bc106bba7a636aaa7f769af44ea6a669c23.zip
docs: update server_configurations.md
skip-checks: true
-rw-r--r--doc/server_configurations.md6
-rw-r--r--doc/server_configurations.txt6
2 files changed, 0 insertions, 12 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 8dbc2f37..25c2f22e 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -5461,18 +5461,12 @@ initial requests (completion, location) upon starting as well as time to first d
Completion results will include a workspace indexing progress message until the server has finished indexing.
```lua
-local runtime_path = vim.split(package.path, ';')
-table.insert(runtime_path, "lua/?.lua")
-table.insert(runtime_path, "lua/?/init.lua")
-
require'lspconfig'.sumneko_lua.setup {
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
- -- Setup your lua path
- path = runtime_path,
},
diagnostics = {
-- Get the language server to recognize the `vim` global
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 8dbc2f37..25c2f22e 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -5461,18 +5461,12 @@ initial requests (completion, location) upon starting as well as time to first d
Completion results will include a workspace indexing progress message until the server has finished indexing.
```lua
-local runtime_path = vim.split(package.path, ';')
-table.insert(runtime_path, "lua/?.lua")
-table.insert(runtime_path, "lua/?/init.lua")
-
require'lspconfig'.sumneko_lua.setup {
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
- -- Setup your lua path
- path = runtime_path,
},
diagnostics = {
-- Get the language server to recognize the `vim` global