From 1a3a429efec62af632dfd8fa9b52fa226f655ec2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 18 Apr 2025 09:03:19 +0000 Subject: docs: update configs.md skip-checks: true --- doc/configs.md | 37 ++++++++++++++++++++++++++++++++++++- doc/configs.txt | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/configs.md b/doc/configs.md index 63b1e451..e3c9558f 100644 --- a/doc/configs.md +++ b/doc/configs.md @@ -87,6 +87,7 @@ Nvim by running `:help lspconfig-all`. - [ember](#ember) - [emmet_language_server](#emmet_language_server) - [emmet_ls](#emmet_ls) +- [emmylua_ls](#emmylua_ls) - [erg_language_server](#erg_language_server) - [erlangls](#erlangls) - [esbonio](#esbonio) @@ -3356,6 +3357,40 @@ Default config: --- +## emmylua_ls + +https://github.com/EmmyLuaLs/emmylua-analyzer-rust + +Emmylua Analyzer Rust. 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). + +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. + +Snippet to enable the language server: +```lua +require'lspconfig'.emmylua_ls.setup{} +``` + +Default config: +- `cmd` : + ```lua + { "emmylua_ls" } + ``` +- `filetypes` : + ```lua + { "lua" } + ``` +- `root_markers` : + ```lua + { ".luarc.json", ".emmyrc.json", ".luacheckrc", ".git" } + ``` +- `workspace_required` : `false` + +--- + ## erg_language_server https://github.com/erg-lang/erg#flags ELS @@ -7137,7 +7172,7 @@ Default config: ``` - `cmd` : ```lua - { "OmniSharp", "-z", "--hostPID", "1882", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } + { "OmniSharp", "-z", "--hostPID", "1961", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } ``` - `filetypes` : ```lua diff --git a/doc/configs.txt b/doc/configs.txt index 9ce35d56..e0c6cf61 100644 --- a/doc/configs.txt +++ b/doc/configs.txt @@ -2939,6 +2939,39 @@ Default config: ``` +------------------------------------------------------------------------------ +emmylua_ls + +https://github.com/EmmyLuaLs/emmylua-analyzer-rust + +Emmylua Analyzer Rust. 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). + +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. + +Snippet to enable the language server: >lua + vim.lsp.enable('emmylua_ls') + + +Default config: +- `cmd` : + ```lua + { "emmylua_ls" } + ``` +- `filetypes` : + ```lua + { "lua" } + ``` +- `root_markers` : + ```lua + { ".luarc.json", ".emmyrc.json", ".luacheckrc", ".git" } + ``` +- `workspace_required` : `false` + + ------------------------------------------------------------------------------ erg_language_server @@ -6616,7 +6649,7 @@ Default config: ``` - `cmd` : ```lua - { "OmniSharp", "-z", "--hostPID", "1882", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } + { "OmniSharp", "-z", "--hostPID", "1961", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } ``` - `filetypes` : ```lua -- cgit v1.2.3-70-g09d2