summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/elixir.lua
blob: 5788347c4fc7145f4f3ad3c0496ea0cf2d9d7861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if require("cfg.utils").check_lsp_client_active "elixirls" then
  return
end

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
-- ]])