aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-26 20:02:24 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-26 20:02:24 +0000
commit2f54017637145e91e70364e6d2bfc77d66277bfd (patch)
treea71843e3e08c74b2940dc7255a14debb5a2e4b1a /doc
parentfeat(efm): add vim.lsp.config support #3786 (diff)
downloadnvim-lspconfig-2f54017637145e91e70364e6d2bfc77d66277bfd.tar
nvim-lspconfig-2f54017637145e91e70364e6d2bfc77d66277bfd.tar.gz
nvim-lspconfig-2f54017637145e91e70364e6d2bfc77d66277bfd.tar.bz2
nvim-lspconfig-2f54017637145e91e70364e6d2bfc77d66277bfd.tar.lz
nvim-lspconfig-2f54017637145e91e70364e6d2bfc77d66277bfd.tar.xz
nvim-lspconfig-2f54017637145e91e70364e6d2bfc77d66277bfd.tar.zst
nvim-lspconfig-2f54017637145e91e70364e6d2bfc77d66277bfd.zip
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc')
-rw-r--r--doc/configs.md38
-rw-r--r--doc/configs.txt32
2 files changed, 70 insertions, 0 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 14733fc2..57dea3ab 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -82,6 +82,7 @@ Nvim by running `:help lspconfig-all`.
- [dts_lsp](#dts_lsp)
- [earthlyls](#earthlyls)
- [ecsact](#ecsact)
+- [efm](#efm)
- [elixirls](#elixirls)
- [elmls](#elmls)
- [elp](#elp)
@@ -3215,6 +3216,43 @@ Default config:
---
+## efm
+
+https://github.com/mattn/efm-langserver
+
+General purpose Language Server that can use specified error message format generated from specified command.
+
+Requires at minimum EFM version [v0.0.38](https://github.com/mattn/efm-langserver/releases/tag/v0.0.38) to support
+launching the language server on single files.
+
+Note: In order for neovim's built-in language server client to send the appropriate `languageId` to EFM, **you must
+specify `filetypes` in your call to `vim.lsp.config`**. Otherwise the server will be launch on the `BufEnter` instead
+of the `FileType` autocommand, and the `filetype` variable used to populate the `languageId` will not yet be set.
+
+```lua
+vim.lsp.config('efm', {
+ filetypes = { 'python','cpp','lua' }
+ settings = ..., -- You must populate this according to the EFM readme
+})
+```
+
+Snippet to enable the language server:
+```lua
+vim.lsp.enable('efm')
+```
+
+Default config:
+- `cmd` :
+ ```lua
+ { "efm-langserver" }
+ ```
+- `root_markers` :
+ ```lua
+ { ".git" }
+ ```
+
+---
+
## elixirls
https://github.com/elixir-lsp/elixir-ls
diff --git a/doc/configs.txt b/doc/configs.txt
index 8b31225f..2ef6ea13 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -2285,6 +2285,38 @@ Default config:
<
------------------------------------------------------------------------------
+efm
+
+https://github.com/mattn/efm-langserver
+
+General purpose Language Server that can use specified error message format generated from specified command.
+
+Requires at minimum EFM version [v0.0.38](https://github.com/mattn/efm-langserver/releases/tag/v0.0.38) to support
+launching the language server on single files.
+
+Note: In order for neovim's built-in language server client to send the appropriate `languageId` to EFM, **you must
+specify `filetypes` in your call to `vim.lsp.config`**. Otherwise the server will be launch on the `BufEnter` instead
+of the `FileType` autocommand, and the `filetype` variable used to populate the `languageId` will not yet be set.
+
+```lua
+vim.lsp.config('efm', {
+ filetypes = { 'python','cpp','lua' }
+ settings = ..., -- You must populate this according to the EFM readme
+})
+```
+
+Snippet to enable the language server: >lua
+ vim.lsp.enable('efm')
+
+
+Default config:
+- cmd: >lua
+ { "efm-langserver" }
+- root_markers: >lua
+ { ".git" }
+<
+
+------------------------------------------------------------------------------
elixirls
https://github.com/elixir-lsp/elixir-ls