diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/configs.md | 38 | ||||
| -rw-r--r-- | doc/configs.txt | 32 |
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 |
