Kacper Marzecki de7a95c890 update
2025-10-19 19:08:07 +02:00

46 lines
1.2 KiB
Lua

-- vim.lsp.config("expert", {
-- cmd = { "expert" },
-- root_markers = { "mix.exs", ".git" },
-- filetypes = { "elixir", "eelixir", "heex" },
-- })
-- vim.lsp.enable("expert")
vim.lsp.config["elixir-ls"] = {
cmd = { "elixir-ls" },
filetypes = { "elixir", "eelixir", "heex" },
root_markers = { "mix.exs", ".git" },
-- Specific settings to send to the server. The schema is server-defined.
-- Example: https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json
-- settings = {
-- Lua = {
-- runtime = {
-- version = 'LuaJIT',
-- }
-- }
-- }
}
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
return {}