fix: lsp setup improved

This commit is contained in:
2025-05-30 15:32:10 +02:00
parent d3de5b76fb
commit eba3271e27
7 changed files with 27 additions and 22 deletions

View File

@@ -1,5 +1,8 @@
return {
cmd = { 'astro-ls', '--stdio' },
filetypes = { 'astro' },
root_markers = { '.git', 'astro.config.mjs', 'astro.config.js', 'astro.config.ts' },
root_markers = { 'astro.config.mjs', 'astro.config.js', 'astro.config.ts' },
init_options = {
typescript = { tsdk = "./node_modules/typescript/lib" }
}
}

View File

@@ -1,5 +1,5 @@
return {
cmd = { 'lua-language-server' },
filetypes = { 'lua' },
root_markers = { '.luarc.json', '.luarc.jsonc', 'init.lua' },
root_markers = { '.luarc.json', '.luarc.jsonc', '.git' },
}