48 lines
1.3 KiB
Lua
48 lines
1.3 KiB
Lua
vim.lsp.config["elixir-ls"] = {
|
|
cmd = { "elixir-ls" },
|
|
filetypes = { "elixir", "eelixir", "heex" },
|
|
root_markers = { "mix.exs", ".git" },
|
|
}
|
|
vim.lsp.enable("elixir-ls")
|
|
vim.lsp.config["deno"] = {
|
|
cmd = { "deno", "lsp" },
|
|
filetypes = { "javascript", "typescript" },
|
|
root_markers = { "deno.json" },
|
|
}
|
|
|
|
vim.lsp.enable("deno")
|
|
|
|
if vim.loop.os_uname().sysname == "Darwin" then
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = { "elixir", "typescript", "json" },
|
|
callback = function()
|
|
vim.lsp.start({
|
|
name = "hhn_lsp",
|
|
cmd = { "/Users/kacper.marzecki@m10s.io/git/hhn_lsp/bin/hhn_lsp" },
|
|
root_dir = vim.fs.dirname(vim.fs.find({ ".git" }, { upward = true })[1]),
|
|
})
|
|
end,
|
|
})
|
|
end
|
|
if vim.loop.os_uname().sysname == "Linux" then
|
|
vim.lsp.config["alsp"] = {
|
|
cmd = { "alsp" },
|
|
filetypes = { "elixir", "heex", "elixirscript" },
|
|
root_markers = { "mix.exs", ".git" },
|
|
}
|
|
vim.lsp.enable("alsp")
|
|
|
|
vim.api.nvim_create_autocmd("BufEnter", {
|
|
pattern = { "*.ae" },
|
|
callback = function()
|
|
print("INITIALIZING LSPROXY")
|
|
vim.lsp.start({
|
|
name = "zxcv",
|
|
cmd = { "/home/omnissiah/git/lsproxy/transls" },
|
|
-- root_dir = vim.fs.dirname(vim.fs.find({ ".git" }, { upward = true })[1]),
|
|
})
|
|
end,
|
|
})
|
|
end
|
|
return {}
|