Skip to content

Instantly share code, notes, and snippets.

@ryanwinchester
Last active August 29, 2025 16:22
Show Gist options
  • Save ryanwinchester/c614b37b3c5d7fc78fe4b271379b8b84 to your computer and use it in GitHub Desktop.
Save ryanwinchester/c614b37b3c5d7fc78fe4b271379b8b84 to your computer and use it in GitHub Desktop.
Expert lazyvim plugin
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,
},
}
@ryanwinchester
Copy link
Author

yes, thanks. i messed that up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment