Last active
August 29, 2025 16:22
-
-
Save ryanwinchester/c614b37b3c5d7fc78fe4b271379b8b84 to your computer and use it in GitHub Desktop.
Expert lazyvim plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return { | |
{ | |
"neovim/nvim-lspconfig", | |
opts = function(_, opts) | |
local lspconfig = require("lspconfig") | |
local configs = require("lspconfig.configs") | |
-- Shim expert if missing | |
if not configs.expert then | |
configs.expert = { | |
default_config = { | |
cmd = { "expert" }, | |
filetypes = { "elixir", "eelixir", "heex" }, | |
root_dir = lspconfig.util.root_pattern("mix.exs", ".git"), | |
single_file_support = true, | |
}, | |
docs = { | |
description = [[ | |
https://github.com/elixir-expert/expert | |
Expert is the official language server implementation for the Elixir programming language. | |
]], | |
}, | |
} | |
end | |
-- Enable it through LazyVim's opts.servers | |
opts.servers = opts.servers or {} | |
opts.servers.expert = {} | |
end, | |
}, | |
{ | |
"mason-org/mason.nvim", | |
opts = function(_, opts) | |
vim.list_extend(opts.ensure_installed, { | |
"expert", | |
}) | |
end, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, thanks. i messed that up