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,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 },
},
},
}