should work better now

This commit is contained in:
Zoty 2026-04-13 15:49:15 -03:00
parent 8f05b02766
commit 32f636c41b
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
34 changed files with 233 additions and 2298 deletions

14
lsp/angularls.lua Normal file
View file

@ -0,0 +1,14 @@
return {
cmd = { 'ngserver', '--stdio', '--tsProbeLocations', '', '--ngProbeLocations', '' },
filetypes = { 'typescript', 'html', 'htmlangular' },
root_markers = { 'angular.json' },
on_new_config = function(new_config, new_root_dir)
local node_modules = new_root_dir .. '/node_modules'
new_config.cmd = {
'ngserver',
'--stdio',
'--tsProbeLocations', node_modules,
'--ngProbeLocations', node_modules,
}
end,
}

4
lsp/astro.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "astro-ls", "--stdio" },
filetypes = { "astro" },
}

4
lsp/bashls.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "bash-language-server", "start" },
filetypes = { "sh", "bash" },
}

4
lsp/clangd.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "clangd", "--background-index" },
filetypes = { "c", "cpp", "objc", "objcpp", "cuda" },
}

4
lsp/cssls.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "vscode-css-language-server", "--stdio" },
filetypes = { "css", "scss", "less" },
}

4
lsp/dockerls.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "docker-langserver", "--stdio" },
filetypes = { "dockerfile" },
}

8
lsp/html.lua Normal file
View file

@ -0,0 +1,8 @@
return {
cmd = { 'vscode-html-language-server', '--stdio' },
filetypes = { 'html' },
root_markers = { 'package.json', '.git' },
init_options = {
provideFormatter = true,
},
}

9
lsp/jsonls.lua Normal file
View file

@ -0,0 +1,9 @@
return {
cmd = { 'vscode-json-language-server', '--stdio' },
filetypes = { 'json', 'jsonc' },
settings = {
json = {
validate = { enable = true },
},
},
}

4
lsp/marksman.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "marksman", "server" },
filetypes = { "markdown" },
}

13
lsp/pyright.lua Normal file
View file

@ -0,0 +1,13 @@
return {
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" },
settings = {
python = {
analysis = {
autoSearchPaths = true,
useLibraryCodeForTypes = true,
diagnosticMode = "workspace",
},
},
},
}

5
lsp/sqls.lua Normal file
View file

@ -0,0 +1,5 @@
return {
cmd = { 'sqls' },
filetypes = { 'sql', 'mysql' },
root_markers = { '.git', 'flake.nix' },
}

4
lsp/tailwindcss.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "tailwindcss-language-server", "--stdio" },
filetypes = { "html", "css", "scss", "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "astro" },
}

4
lsp/taplo.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "taplo", "lsp", "stdio" },
filetypes = { "toml" },
}

5
lsp/ts_ls.lua Normal file
View file

@ -0,0 +1,5 @@
return {
cmd = { 'typescript-language-server', '--stdio' },
filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
root_markers = { 'tsconfig.json', 'jsconfig.json', 'package.json', '.git' },
}

4
lsp/volar.lua Normal file
View file

@ -0,0 +1,4 @@
return {
cmd = { "vue-language-server", "--stdio" },
filetypes = { "vue" },
}

14
lsp/yamlls.lua Normal file
View file

@ -0,0 +1,14 @@
return {
cmd = { "yaml-language-server", "--stdio" },
filetypes = { "yaml" },
settings = {
yaml = {
schemas = {
kubernetes = "*.yaml",
["http://json.schemastore.org/github-workflow"] = ".github/workflows/*",
["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}",
["http://json.schemastore.org/prettierrc"] = ".prettierrc.{yml,yaml}",
},
},
},
}