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

12
lsp/intelephense.lua Normal file
View File

@@ -0,0 +1,12 @@
return {
cmd = { 'intelephense', '--stdio' },
filetypes = { 'php' },
root_dir = function(bufnr, on_dir)
local fname = vim.api.nvim_buf_get_name(bufnr)
local cwd = assert(vim.uv.cwd())
local root = vim.fs.root(fname, { 'composer.json', '.git' })
-- prefer cwd if root is a descendant
on_dir(root and vim.fs.relpath(cwd, root) and cwd)
end,
}