Remove nvim-lsp-config and manually add each lsp.

This commit is contained in:
calcu1on
2025-05-20 08:55:12 -04:00
parent 571341310a
commit bb66b8fa82
10 changed files with 162 additions and 106 deletions

11
lsp/elixirls.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
root_dir = function(bufnr, on_dir)
local fname = vim.api.nvim_buf_get_name(bufnr)
local matches = vim.fs.find({ 'mix.exs' }, { upward = true, limit = 2, path = fname })
local child_or_root_path, maybe_umbrella_path = unpack(matches)
local root_dir = vim.fs.dirname(maybe_umbrella_path or child_or_root_path)
on_dir(root_dir)
end,
}