summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/elixir.lua
blob: fbb5b29b948bd70e054a92e5241ebf113df1c7f6 (plain)
1
2
3
4
5
6
7
8
9
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
-- ]])