mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
fix(neovim): Blank to default lsp configurations
- Configuration for files under `/lsp` are added
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
return {
|
||||
cmd = { "bash-language-server", "start" },
|
||||
filetypes = { "sh", "bash", "zsh" },
|
||||
}
|
||||
|
||||
@@ -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 },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "docker-compose-langserver", "--stdio" },
|
||||
filetypes = { "yaml.docker-compose" },
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "docker-langserver", "--stdio" },
|
||||
filetypes = { "dockerfile" },
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
return {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
-- capabilities = {},
|
||||
cmd = { "vscode-html-language-server", "--stdio" },
|
||||
filetypes = { "html", "twig", "hbs" },
|
||||
settings = {
|
||||
html = {
|
||||
format = { wrapLineLength = 120 },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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 },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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, ";"),
|
||||
},
|
||||
diagnostics = {
|
||||
globals = { "vim" },
|
||||
},
|
||||
javascript = {
|
||||
inlayHints = {
|
||||
includeInlayParameterNameHints = "all",
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
||||
includeInlayFunctionParameterTypeHints = true,
|
||||
includeInlayVariableTypeHints = true,
|
||||
includeInlayPropertyDeclarationTypeHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = { vim.env.VIMRUNTIME },
|
||||
},
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "markdownlint-language-server", "--stdio" },
|
||||
filetypes = { "markdown" },
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
return {}
|
||||
4
common/.config/nvim/lsp/marksman.lua
Normal file
4
common/.config/nvim/lsp/marksman.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
cmd = { "marksman", "server" },
|
||||
filetypes = { "markdown" },
|
||||
}
|
||||
@@ -1 +1,13 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "prettier", "--lsp" },
|
||||
filetypes = {
|
||||
"javascript",
|
||||
"typescript",
|
||||
"css",
|
||||
"scss",
|
||||
"html",
|
||||
"json",
|
||||
"yaml",
|
||||
},
|
||||
root_markers = { ".prettierrc", "package.json" },
|
||||
}
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "pylsp" },
|
||||
filetypes = { "python" },
|
||||
settings = {
|
||||
pylsp = {},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "shellcheck", "--format=json", "-" },
|
||||
filetypes = { "sh", "bash", "zsh" },
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "shellharden", "--lsp" },
|
||||
filetypes = { "sh", "bash", "zsh" },
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "shfmt", "-l", "-" },
|
||||
filetypes = { "sh", "bash", "zsh" },
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "sql-language-server", "up", "--method", "stdio" },
|
||||
filetypes = { "sql" },
|
||||
}
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "taplo", "lsp", "stdio" },
|
||||
filetypes = { "toml" },
|
||||
settings = {
|
||||
taplo = {
|
||||
evenBetterToml = { schema = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "trivy", "server" },
|
||||
filetypes = { "dockerfile", "yaml", "json" },
|
||||
root_markers = { ".git", "Dockerfile", "docker-compose.yaml" },
|
||||
}
|
||||
|
||||
@@ -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" },
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
return {}
|
||||
return {
|
||||
cmd = { "yaml-language-server", "--stdio" },
|
||||
filetypes = { "yaml" },
|
||||
settings = {
|
||||
yaml = {
|
||||
format = { enable = true },
|
||||
validate = true,
|
||||
schemaStore = { enable = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user