aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/erlangls.lua23
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)]]
+ }
+ };
+}