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 {
|
return {
|
||||||
|
cmd = { "bash-language-server", "start" },
|
||||||
filetypes = { "sh", "bash", "zsh" },
|
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 {
|
return {
|
||||||
-- cmd = { ... },
|
cmd = { "vscode-html-language-server", "--stdio" },
|
||||||
-- filetypes = { ... },
|
|
||||||
-- capabilities = {},
|
|
||||||
filetypes = { "html", "twig", "hbs" },
|
filetypes = { "html", "twig", "hbs" },
|
||||||
|
settings = {
|
||||||
|
html = {
|
||||||
|
format = { wrapLineLength = 120 },
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
-- lazy-load schemastore when needed
|
cmd = { "vscode-json-languageserver", "--stdio" },
|
||||||
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,
|
|
||||||
settings = {
|
settings = {
|
||||||
json = {
|
json = {
|
||||||
format = {
|
format = { enable = true },
|
||||||
enable = true,
|
|
||||||
},
|
|
||||||
validate = { enable = true },
|
validate = { enable = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,28 +1,20 @@
|
|||||||
return {
|
return {
|
||||||
|
cmd = { "lua-language-server" },
|
||||||
|
filetype = { "lua" },
|
||||||
settings = {
|
settings = {
|
||||||
typescript = {
|
Lua = {
|
||||||
updateImportOnFileMove = { enabled = "always" },
|
runtime = {
|
||||||
suggest = { completeFunctionCalls = true },
|
version = "LuaJIT",
|
||||||
inlayHints = {
|
path = vim.split(package.path, ";"),
|
||||||
includeInlayParameterNameHints = "all",
|
|
||||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
|
||||||
includeInlayFunctionParameterTypeHints = true,
|
|
||||||
includeInlayVariableTypeHints = true,
|
|
||||||
includeInlayPropertyDeclarationTypeHints = true,
|
|
||||||
includeInlayFunctionLikeReturnTypeHints = true,
|
|
||||||
includeInlayEnumMemberValueHints = true,
|
|
||||||
},
|
},
|
||||||
|
diagnostics = {
|
||||||
|
globals = { "vim" },
|
||||||
},
|
},
|
||||||
javascript = {
|
workspace = {
|
||||||
inlayHints = {
|
checkThirdParty = false,
|
||||||
includeInlayParameterNameHints = "all",
|
library = { vim.env.VIMRUNTIME },
|
||||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
|
||||||
includeInlayFunctionParameterTypeHints = true,
|
|
||||||
includeInlayVariableTypeHints = true,
|
|
||||||
includeInlayPropertyDeclarationTypeHints = true,
|
|
||||||
includeInlayFunctionLikeReturnTypeHints = true,
|
|
||||||
includeInlayEnumMemberValueHints = true,
|
|
||||||
},
|
},
|
||||||
|
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 {
|
return {
|
||||||
|
cmd = { "typescript-language-server", "--stdio" },
|
||||||
|
filetypes = {
|
||||||
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
|
"typescript.txt",
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"javascript.jsx",
|
||||||
|
},
|
||||||
|
root_markers = { "package.json", "tsconfig.json", ".git" },
|
||||||
settings = {
|
settings = {
|
||||||
typescript = {
|
typescript = {
|
||||||
updateImportOnFileMove = { enabled = "always" },
|
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