aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <github-actions@github.com>2021-07-28 16:57:58 +0000
committergithub-actions <github-actions@github.com>2021-07-28 16:57:58 +0000
commit8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7 (patch)
treecdcca97496f849dd890f5d7d36a5d7eea5b9334b
parentdocs(efm): specify that filetypes must be set (diff)
downloadnvim-lspconfig-8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7.tar
nvim-lspconfig-8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7.tar.gz
nvim-lspconfig-8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7.tar.bz2
nvim-lspconfig-8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7.tar.lz
nvim-lspconfig-8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7.tar.xz
nvim-lspconfig-8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7.tar.zst
nvim-lspconfig-8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7.zip
[docgen] Update CONFIG.md
skip-checks: true
-rw-r--r--CONFIG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/CONFIG.md b/CONFIG.md
index bc3f27f1..1bfd3286 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -1278,6 +1278,18 @@ require'lspconfig'.dotls.setup{}
https://github.com/mattn/efm-langserver
General purpose Language Server that can use specified error message format generated from specified command.
+
+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.
+
+```lua
+require('lspconfig')['efm'].setup{
+ settings = ..., -- You must populate this according to the EFM readme
+ filetypes = { 'python','cpp','lua' }
+}
+```
+