aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/efm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/efm.lua b/lua/lspconfig/server_configurations/efm.lua
index ad4372ca..f5f74edc 100644
--- a/lua/lspconfig/server_configurations/efm.lua
+++ b/lua/lspconfig/server_configurations/efm.lua
@@ -15,7 +15,7 @@ General purpose Language Server that can use specified error message format gene
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
@@ -23,7 +23,7 @@ require('lspconfig')['efm'].setup{
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.