aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions <github-actions@github.com>2021-12-20 00:06:34 +0000
committergithub-actions <github-actions@github.com>2021-12-20 00:06:34 +0000
commitc018b1e92e66b3429a2f167d59211846774f1e3b (patch)
tree4f775d23cf031efb71530a4202ef6a2e452596ed /doc
parentfeat(efm): re-enable single file support (diff)
downloadnvim-lspconfig-c018b1e92e66b3429a2f167d59211846774f1e3b.tar
nvim-lspconfig-c018b1e92e66b3429a2f167d59211846774f1e3b.tar.gz
nvim-lspconfig-c018b1e92e66b3429a2f167d59211846774f1e3b.tar.bz2
nvim-lspconfig-c018b1e92e66b3429a2f167d59211846774f1e3b.tar.lz
nvim-lspconfig-c018b1e92e66b3429a2f167d59211846774f1e3b.tar.xz
nvim-lspconfig-c018b1e92e66b3429a2f167d59211846774f1e3b.tar.zst
nvim-lspconfig-c018b1e92e66b3429a2f167d59211846774f1e3b.zip
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc')
-rw-r--r--doc/server_configurations.md13
-rw-r--r--doc/server_configurations.txt13
2 files changed, 24 insertions, 2 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 2e9624a7..0d832cff 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -995,6 +995,17 @@ 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. If on an older version of EFM, disable single file support:
+
+```lua
+require('lspconfig')['efm'].setup{
+ settings = ..., -- You must populate this according to the EFM readme
+ filetypes = ..., -- Populate this according to the note below
+ single_file_support = false, -- This is the important line for supporting older version of EFM
+}
+```
+
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 `setup{}`**. Otherwise `lspconfig` will launch EFM on the `BufEnter` instead
of the `FileType` autocommand, and the `filetype` variable used to populate the `languageId` will not yet be set.
@@ -1021,7 +1032,7 @@ require'lspconfig'.efm.setup{}
Default Values:
cmd = { "efm-langserver" }
root_dir = util.root_pattern(".git")
- single_file_support = false
+ single_file_support = true
```
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 2e9624a7..0d832cff 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -995,6 +995,17 @@ 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. If on an older version of EFM, disable single file support:
+
+```lua
+require('lspconfig')['efm'].setup{
+ settings = ..., -- You must populate this according to the EFM readme
+ filetypes = ..., -- Populate this according to the note below
+ single_file_support = false, -- This is the important line for supporting older version of EFM
+}
+```
+
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 `setup{}`**. Otherwise `lspconfig` will launch EFM on the `BufEnter` instead
of the `FileType` autocommand, and the `filetype` variable used to populate the `languageId` will not yet be set.
@@ -1021,7 +1032,7 @@ require'lspconfig'.efm.setup{}
Default Values:
cmd = { "efm-langserver" }
root_dir = util.root_pattern(".git")
- single_file_support = false
+ single_file_support = true
```