fix(neovim): Blank to default lsp configurations

- Configuration for files under `/lsp` are added
This commit is contained in:
Pratik Tripathy
2025-09-01 11:54:16 +05:30
parent eb9b6b5ab3
commit 3be53f130a
20 changed files with 118 additions and 46 deletions

View File

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

View File

@@ -1 +1,9 @@
return {}
return {
cmd = { "vscode-css-language-server", "--studio" },
filetypes = { "css", "scss", "less" },
settings = {
css = { validate = true },
scss = { validate = true },
less = { validate = true },
},
}

View File

@@ -1 +1,4 @@
return {}
return {
cmd = { "docker-compose-langserver", "--stdio" },
filetypes = { "yaml.docker-compose" },
}

View File

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

View File

@@ -1,6 +1,9 @@
return {
-- cmd = { ... },
-- filetypes = { ... },
-- capabilities = {},
cmd = { "vscode-html-language-server", "--stdio" },
filetypes = { "html", "twig", "hbs" },
settings = {
html = {
format = { wrapLineLength = 120 },
},
},
}

View File

@@ -1,14 +1,8 @@
return {
-- lazy-load schemastore when needed
on_new_config = function(new_config)
new_config.settings.json.schemas = new_config.settings.json.schemas or {}
vim.list_extend(new_config.settings.json.schemas, require("schemastore").json.schemas())
end,
cmd = { "vscode-json-languageserver", "--stdio" },
settings = {
json = {
format = {
enable = true,
},
format = { enable = true },
validate = { enable = true },
},
},

View File

@@ -1,28 +1,20 @@
return {
cmd = { "lua-language-server" },
filetype = { "lua" },
settings = {
typescript = {
updateImportOnFileMove = { enabled = "always" },
suggest = { completeFunctionCalls = true },
inlayHints = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
Lua = {
runtime = {
version = "LuaJIT",
path = vim.split(package.path, ";"),
},
},
javascript = {
inlayHints = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
diagnostics = {
globals = { "vim" },
},
workspace = {
checkThirdParty = false,
library = { vim.env.VIMRUNTIME },
},
telemetry = { enable = false },
},
},
}

View File

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

View File

@@ -1 +0,0 @@
return {}

View File

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

View File

@@ -1 +1,13 @@
return {}
return {
cmd = { "prettier", "--lsp" },
filetypes = {
"javascript",
"typescript",
"css",
"scss",
"html",
"json",
"yaml",
},
root_markers = { ".prettierrc", "package.json" },
}

View File

@@ -1 +1,7 @@
return {}
return {
cmd = { "pylsp" },
filetypes = { "python" },
settings = {
pylsp = {},
},
}

View File

@@ -1 +1,4 @@
return {}
return {
cmd = { "shellcheck", "--format=json", "-" },
filetypes = { "sh", "bash", "zsh" },
}

View File

@@ -1 +1,4 @@
return {}
return {
cmd = { "shellharden", "--lsp" },
filetypes = { "sh", "bash", "zsh" },
}

View File

@@ -1 +1,4 @@
return {}
return {
cmd = { "shfmt", "-l", "-" },
filetypes = { "sh", "bash", "zsh" },
}

View File

@@ -1 +1,4 @@
return {}
return {
cmd = { "sql-language-server", "up", "--method", "stdio" },
filetypes = { "sql" },
}

View File

@@ -1 +1,9 @@
return {}
return {
cmd = { "taplo", "lsp", "stdio" },
filetypes = { "toml" },
settings = {
taplo = {
evenBetterToml = { schema = true },
},
},
}

View File

@@ -1 +1,5 @@
return {}
return {
cmd = { "trivy", "server" },
filetypes = { "dockerfile", "yaml", "json" },
root_markers = { ".git", "Dockerfile", "docker-compose.yaml" },
}

View File

@@ -1,4 +1,14 @@
return {
cmd = { "typescript-language-server", "--stdio" },
filetypes = {
"typescript",
"typescriptreact",
"typescript.txt",
"javascript",
"javascriptreact",
"javascript.jsx",
},
root_markers = { "package.json", "tsconfig.json", ".git" },
settings = {
typescript = {
updateImportOnFileMove = { enabled = "always" },

View File

@@ -1 +1,11 @@
return {}
return {
cmd = { "yaml-language-server", "--stdio" },
filetypes = { "yaml" },
settings = {
yaml = {
format = { enable = true },
validate = true,
schemaStore = { enable = true },
},
},
}