mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
dev: automated commit - 2025-05-28 14:17:15
This commit is contained in:
parent
cc9b3f716e
commit
a2d2fcb86e
9 changed files with 69 additions and 93 deletions
15
lsp/gopls.lua
Normal file
15
lsp/gopls.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
settings = {
|
||||
gopls = {
|
||||
gofumpt = true, -- https://github.com/mvdan/gofumpt a stricter gofmt
|
||||
completeUnimported = true,
|
||||
usePlaceholders = true,
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
flags = {
|
||||
debounce_text_changes = 150, -- https://github.com/golang/tools/blob/master/gopls/doc/settings.md#change-detection
|
||||
},
|
||||
}
|
3
lsp/html.lua
Normal file
3
lsp/html.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
filetypes = { "html", "templ" },
|
||||
}
|
3
lsp/htmx.lua
Normal file
3
lsp/htmx.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
filetypes = { "html", "templ" },
|
||||
}
|
16
lsp/jsonls.lua
Normal file
16
lsp/jsonls.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
settings = {
|
||||
json = {
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
},
|
||||
},
|
||||
setup = {
|
||||
commands = {
|
||||
Format = {
|
||||
function()
|
||||
vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line("$"), 0 })
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
21
lsp/lua_ls.lua
Normal file
21
lsp/lua_ls.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
format = {
|
||||
enable = false,
|
||||
},
|
||||
hint = {
|
||||
enable = false,
|
||||
arrayIndex = "Disable",
|
||||
await = true,
|
||||
paramName = "Disable",
|
||||
paramType = true,
|
||||
semicolon = "All",
|
||||
setType = false,
|
||||
},
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
7
lsp/omnisharp.lua
Normal file
7
lsp/omnisharp.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
settings = {
|
||||
enable_roslyn_analyzers = true,
|
||||
organize_imports_on_format = true,
|
||||
enable_import_completion = true,
|
||||
},
|
||||
}
|
39
lsp/vtsls.lua
Normal file
39
lsp/vtsls.lua
Normal file
|
@ -0,0 +1,39 @@
|
|||
return {
|
||||
-- explicitly add default filetypes, so that we can extend
|
||||
-- them in related extras
|
||||
filetypes = {
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"javascript.jsx",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"typescript.tsx",
|
||||
},
|
||||
settings = {
|
||||
complete_function_calls = true,
|
||||
vtsls = {
|
||||
enableMoveToFileCodeAction = true,
|
||||
autoUseWorkspaceTsdk = true,
|
||||
experimental = {
|
||||
maxInlayHintLength = 30,
|
||||
completion = {
|
||||
enableServerSideFuzzyMatch = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
typescript = {
|
||||
updateImportsOnFileMove = { enabled = "always" },
|
||||
suggest = {
|
||||
completeFunctionCalls = true,
|
||||
},
|
||||
inlayHints = {
|
||||
enumMemberValues = { enabled = true },
|
||||
functionLikeReturnTypes = { enabled = true },
|
||||
parameterNames = { enabled = "literals" },
|
||||
parameterTypes = { enabled = true },
|
||||
propertyDeclarationTypes = { enabled = true },
|
||||
variableTypes = { enabled = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
21
lsp/yamlls.lua
Normal file
21
lsp/yamlls.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
settings = {
|
||||
yaml = {
|
||||
schemaStore = {
|
||||
-- You must disable built-in schemaStore support if you want to use
|
||||
-- this plugin and its advanced options like `ignore`.
|
||||
enable = false,
|
||||
-- Avoid TypeError: Cannot read properties of undefined (reading 'length')
|
||||
url = "",
|
||||
},
|
||||
schemas = require("schemastore").yaml.schemas({
|
||||
-- additional schemas (not in the catalog)
|
||||
extra = {
|
||||
url = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argoproj.io/application_v1alpha1.json",
|
||||
name = "Argo CD Application",
|
||||
fileMatch = "argocd-application.yaml",
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue