fix: lsp setup improved
This commit is contained in:
@@ -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" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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' },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user