aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-05-12 14:33:34 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-05-12 14:33:34 +0000
commit75e49cfa588a89ca667d767c0afef3ceac205faa (patch)
tree8ae3e1b7bd7dadc8c74a7122e56ccc60213a94d7
parentfeat: improve emmylua_ls #4423 (diff)
downloadnvim-lspconfig-75e49cfa588a89ca667d767c0afef3ceac205faa.tar
nvim-lspconfig-75e49cfa588a89ca667d767c0afef3ceac205faa.tar.gz
nvim-lspconfig-75e49cfa588a89ca667d767c0afef3ceac205faa.tar.bz2
nvim-lspconfig-75e49cfa588a89ca667d767c0afef3ceac205faa.tar.lz
nvim-lspconfig-75e49cfa588a89ca667d767c0afef3ceac205faa.tar.xz
nvim-lspconfig-75e49cfa588a89ca667d767c0afef3ceac205faa.tar.zst
nvim-lspconfig-75e49cfa588a89ca667d767c0afef3ceac205faa.zip
docs: update configs.md
skip-checks: true
-rw-r--r--doc/configs.md30
-rw-r--r--doc/configs.txt26
2 files changed, 38 insertions, 18 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 4cb7e3d3..f1e00640 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -4091,13 +4091,18 @@ Default config:
https://github.com/EmmyLuaLs/emmylua-analyzer-rust
-Emmylua Analyzer Rust. Language Server for Lua.
+EmmyluaLs, a language server for Lua.
-`emmylua_ls` can be installed using `cargo` by following the instructions[here]
-(https://github.com/EmmyLuaLs/emmylua-analyzer-rust?tab=readme-ov-file#install).
+`emmylua_ls` can be installed using `cargo` by following the [instructions](https://github.com/EmmyLuaLs/emmylua-analyzer-rust#install).
The default `cmd` assumes that the `emmylua_ls` binary can be found in `$PATH`.
-It might require you to provide cargo binaries installation path in it.
+You may want to symlink to the cargo artifact:
+```
+ln -s $(pwd)/target/release/emmylua_ls ~/bin/emmylua_ls
+```
+
+See the emmylua_ls [configuration guide](https://github.com/EmmyLuaLs/emmylua-analyzer-rust/blob/main/docs/config/emmyrc_json_EN.md)
+for settings documentation.
Snippet to enable the language server:
```lua
@@ -4115,7 +4120,18 @@ Default config:
```
- `root_markers` :
```lua
- { ".luarc.json", ".emmyrc.json", ".luacheckrc", ".git" }
+ { { ".emmyrc.json", ".emmyrc.lua", ".luarc.json", ".luarc.jsonc" }, { ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml" }, { ".git" } }
+ ```
+- `settings` :
+ ```lua
+ {
+ codeLens = {
+ enable = true
+ },
+ hint = {
+ enable = true
+ }
+ }
```
- `workspace_required` : `false`
@@ -7265,10 +7281,6 @@ vim.lsp.config('lua_ls', {
vim.env.VIMRUNTIME,
-- For LSP Settings Type Annotations: https://github.com/neovim/nvim-lspconfig#lsp-settings-type-annotations
vim.api.nvim_get_runtime_file("lua/lspconfig", false)[1],
- -- Depending on the usage, you might want to add additional paths
- -- here.
- -- '${3rd}/luv/library',
- -- '${3rd}/busted/library',
},
-- Or pull in all of 'runtimepath'.
-- NOTE: this is a lot slower and will cause issues when working on
diff --git a/doc/configs.txt b/doc/configs.txt
index ab50d8ee..0880f39d 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -2845,13 +2845,16 @@ emmylua_ls
https://github.com/EmmyLuaLs/emmylua-analyzer-rust
-Emmylua Analyzer Rust. Language Server for Lua.
+EmmyluaLs, a language server for Lua.
-`emmylua_ls` can be installed using `cargo` by following the instructions[here]
-(https://github.com/EmmyLuaLs/emmylua-analyzer-rust?tab=readme-ov-file#install).
+`emmylua_ls` can be installed using `cargo` by following the [instructions](https://github.com/EmmyLuaLs/emmylua-analyzer-rust#install).
The default `cmd` assumes that the `emmylua_ls` binary can be found in `$PATH`.
-It might require you to provide cargo binaries installation path in it.
+You may want to symlink to the cargo artifact:>
+ ln -s $(pwd)/target/release/emmylua_ls ~/bin/emmylua_ls
+
+See the emmylua_ls [configuration guide](https://github.com/EmmyLuaLs/emmylua-analyzer-rust/blob/main/docs/config/emmyrc_json_EN.md)
+for settings documentation.
Snippet to enable the language server: >lua
vim.lsp.enable('emmylua_ls')
@@ -2863,7 +2866,16 @@ Default config:
- filetypes: >lua
{ "lua" }
- root_markers: >lua
- { ".luarc.json", ".emmyrc.json", ".luacheckrc", ".git" }
+ { { ".emmyrc.json", ".emmyrc.lua", ".luarc.json", ".luarc.jsonc" }, { ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml" }, { ".git" } }
+- settings: >lua
+ {
+ codeLens = {
+ enable = true
+ },
+ hint = {
+ enable = true
+ }
+ }
- `workspace_required` : `false`
<
@@ -5309,10 +5321,6 @@ settings.
vim.env.VIMRUNTIME,
-- For LSP Settings Type Annotations: https://github.com/neovim/nvim-lspconfig#lsp-settings-type-annotations
vim.api.nvim_get_runtime_file("lua/lspconfig", false)[1],
- -- Depending on the usage, you might want to add additional paths
- -- here.
- -- '${3rd}/luv/library',
- -- '${3rd}/busted/library',
},
-- Or pull in all of 'runtimepath'.
-- NOTE: this is a lot slower and will cause issues when working on