diff options
| author | Benedikt Reinartz <filmor@gmail.com> | 2023-10-20 07:54:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-20 13:54:09 +0800 |
| commit | 7a2e07cf9aa2a339c1f14559e3d555c2664e8c27 (patch) | |
| tree | e6b5377c1fa65edbad2c9f32319617eeb8029324 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-7a2e07cf9aa2a339c1f14559e3d555c2664e8c27.tar nvim-lspconfig-7a2e07cf9aa2a339c1f14559e3d555c2664e8c27.tar.gz nvim-lspconfig-7a2e07cf9aa2a339c1f14559e3d555c2664e8c27.tar.bz2 nvim-lspconfig-7a2e07cf9aa2a339c1f14559e3d555c2664e8c27.tar.lz nvim-lspconfig-7a2e07cf9aa2a339c1f14559e3d555c2664e8c27.tar.xz nvim-lspconfig-7a2e07cf9aa2a339c1f14559e3d555c2664e8c27.tar.zst nvim-lspconfig-7a2e07cf9aa2a339c1f14559e3d555c2664e8c27.zip | |
feat: add eLP (new erlang language server) (#2868)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/elp.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/elp.lua b/lua/lspconfig/server_configurations/elp.lua new file mode 100644 index 00000000..00678a5d --- /dev/null +++ b/lua/lspconfig/server_configurations/elp.lua @@ -0,0 +1,21 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'elp', 'server' }, + filetypes = { 'erlang' }, + root_dir = util.root_pattern('rebar.config', 'erlang.mk', '.git'), + single_file_support = true, + }, + docs = { + description = [[ +https://whatsapp.github.io/erlang-language-platform + +ELP integrates Erlang into modern IDEs via the language server protocol and was +inspired by rust-analyzer. +]], + default_config = { + root_dir = [[root_pattern('rebar.config', 'erlang.mk', '.git')]], + }, + }, +} |
