diff options
| author | 🐈 <88maomao@gmail.com> | 2021-02-22 19:51:32 +0200 |
|---|---|---|
| committer | 🐈 <88maomao@gmail.com> | 2021-03-01 20:44:28 +0200 |
| commit | 77389ca5ceb92e5a6859983e1763e8c9157b5658 (patch) | |
| tree | ece2c5fe501cd2fa3df8b6af07611760a94ef4dc /lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-77389ca5ceb92e5a6859983e1763e8c9157b5658.tar nvim-lspconfig-77389ca5ceb92e5a6859983e1763e8c9157b5658.tar.gz nvim-lspconfig-77389ca5ceb92e5a6859983e1763e8c9157b5658.tar.bz2 nvim-lspconfig-77389ca5ceb92e5a6859983e1763e8c9157b5658.tar.lz nvim-lspconfig-77389ca5ceb92e5a6859983e1763e8c9157b5658.tar.xz nvim-lspconfig-77389ca5ceb92e5a6859983e1763e8c9157b5658.tar.zst nvim-lspconfig-77389ca5ceb92e5a6859983e1763e8c9157b5658.zip | |
Add configuration for Erlang Language Server
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/erlangls.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/erlangls.lua b/lua/lspconfig/erlangls.lua new file mode 100644 index 00000000..0bc1a859 --- /dev/null +++ b/lua/lspconfig/erlangls.lua @@ -0,0 +1,23 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + + +configs.erlangls = { + default_config = { + cmd = { "erlang_ls" }; + filetypes = { "erlang" }; + root_dir = function(fname) + return util.root_pattern("rebar.config", "erlang.mk", ".git")(fname) or util.path.dirname(fname) + end; + }; + docs = { + description = [[ +https://erlang-ls.github.io + +Language Server for Erlang. +]]; + default_config = { + root_dir = [[root_pattern('rebar.config', 'erlang.mk', '.git') or util.path.dirname(fname)]] + } + }; +} |
