diff options
| author | github-actions <github-actions@github.com> | 2021-07-28 16:57:58 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-07-28 16:57:58 +0000 |
| commit | 8b5f017fdf4ac485cfffbf4c93b7f3ce8de792f7 (patch) | |
| tree | cdcca97496f849dd890f5d7d36a5d7eea5b9334b | |
| parent | docs(efm): specify that filetypes must be set (diff) | |
| download | nvim-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.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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' } +} +``` + |
