summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/elixir.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/ftplugin/elixir.lua')
-rw-r--r--.config/nvim/ftplugin/elixir.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/nvim/ftplugin/elixir.lua b/.config/nvim/ftplugin/elixir.lua
new file mode 100644
index 0000000..fbb5b29
--- /dev/null
+++ b/.config/nvim/ftplugin/elixir.lua
@@ -0,0 +1,10 @@
+require("lspconfig").elixirls.setup {
+ cmd = { DATA_PATH .. "/lspinstall/elixir/elixir-ls/language_server.sh" },
+}
+
+-- needed for the LSP to recognize elixir files (alternativly just use elixir-editors/vim-elixir)
+-- vim.cmd([[
+-- au BufRead,BufNewFile *.ex,*.exs set filetype=elixir
+-- au BufRead,BufNewFile *.eex,*.leex,*.sface set filetype=eelixir
+-- au BufRead,BufNewFile mix.lock set filetype=elixir
+-- ]])