Initial rewrite
Signed-off-by: Timothy Pidashev <mail@timmypidashev.dev>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
-- Apex LSP: download the JAR from https://github.com/forcedotcom/salesforcedx-vscode-apex
|
||||
-- then set APEX_JAR env var to its path (e.g. ~/.local/share/apex-jorje-lsp.jar).
|
||||
local jar = vim.env.APEX_JAR or (vim.env.HOME .. "/.local/share/apex-jorje-lsp.jar")
|
||||
|
||||
return {
|
||||
cmd = {
|
||||
"java",
|
||||
"-cp", jar,
|
||||
"-Ddebug.internal.errors=true",
|
||||
"-Ddebug.semantic.errors=false",
|
||||
"-Ddebug.completion.statistics=false",
|
||||
"-Dlwc.typegeneration.disabled=true",
|
||||
"apex.jorje.lsp.ApexLanguageServerLauncher",
|
||||
},
|
||||
filetypes = { "apex" },
|
||||
root_markers = { "sfdx-project.json", ".git" },
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "bash-language-server", "start" },
|
||||
filetypes = { "sh", "bash" },
|
||||
root_markers = { ".git" },
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
cmd = { "vscode-css-language-server", "--stdio" },
|
||||
filetypes = { "css", "scss", "less" },
|
||||
root_markers = { "package.json", ".git" },
|
||||
settings = {
|
||||
css = { validate = true },
|
||||
scss = { validate = true },
|
||||
less = { validate = true },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
cmd = { "gopls" },
|
||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
||||
root_markers = { "go.work", "go.mod", ".git" },
|
||||
settings = {
|
||||
gopls = {
|
||||
analyses = { unusedparams = true },
|
||||
staticcheck = true,
|
||||
gofumpt = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
cmd = { "vscode-html-language-server", "--stdio" },
|
||||
filetypes = { "html", "templ" },
|
||||
root_markers = { "package.json", ".git" },
|
||||
init_options = {
|
||||
configurationSection = { "html", "css", "javascript" },
|
||||
embeddedLanguages = { css = true, javascript = true },
|
||||
provideFormatter = true,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "htmx-lsp" },
|
||||
filetypes = { "html", "templ" },
|
||||
root_markers = { "package.json", "go.mod", ".git" },
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
cmd = { "vscode-json-language-server", "--stdio" },
|
||||
filetypes = { "json", "jsonc" },
|
||||
root_markers = { ".git" },
|
||||
init_options = { provideFormatter = true },
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
cmd = { "lua-language-server" },
|
||||
filetypes = { "lua" },
|
||||
root_markers = { ".luarc.json", ".luarc.jsonc", ".git" },
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = { version = "LuaJIT" },
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = {
|
||||
vim.env.VIMRUNTIME,
|
||||
"${3rd}/luv/library",
|
||||
},
|
||||
},
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "marksman", "server" },
|
||||
filetypes = { "markdown", "markdown.mdx" },
|
||||
root_markers = { ".marksman.toml", ".git" },
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
cmd = { "pyright-langserver", "--stdio" },
|
||||
filetypes = { "python" },
|
||||
root_markers = { "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", "pyrightconfig.json", ".git" },
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
diagnosticMode = "openFilesOnly",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "taplo", "lsp", "stdio" },
|
||||
filetypes = { "toml" },
|
||||
root_markers = { ".git" },
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "templ", "lsp" },
|
||||
filetypes = { "templ" },
|
||||
root_markers = { "go.mod", ".git" },
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "typescript-language-server", "--stdio" },
|
||||
filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
|
||||
root_markers = { "package.json", "tsconfig.json", "jsconfig.json", ".git" },
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
cmd = { "yaml-language-server", "--stdio" },
|
||||
filetypes = { "yaml", "yaml.docker-compose", "yaml.gitlab" },
|
||||
root_markers = { ".git" },
|
||||
settings = {
|
||||
yaml = {
|
||||
keyOrdering = false,
|
||||
schemaStore = { enable = true, url = "https://www.schemastore.org/api/json/catalog.json" },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user