feat: migrate old config
This commit is contained in:
1 parent
1a2ce09da2
commit
a593a5aae3
31 files changed
+886
-32
No files matched your search
@@ -0,0 +1,25 @@
|
||||
return {
|
||||
settings = {
|
||||
gopls = {
|
||||
buildFlags = { "-tags=unittest" },
|
||||
vulncheck = "Imports",
|
||||
codelenses = {
|
||||
gc_details = true,
|
||||
gc_details_all = true,
|
||||
generate = true,
|
||||
regenerate_cgo = true,
|
||||
tidy = true,
|
||||
run_govulncheck = true,
|
||||
},
|
||||
hints = {
|
||||
assignVariableTypes = true,
|
||||
compositeLiteralFields = true,
|
||||
compositeLiteralTypes = true,
|
||||
constantValues = true,
|
||||
functionTypeParameters = true,
|
||||
parameterNames = true,
|
||||
rangeVariableTypes = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
settings = {
|
||||
intelephense = { telemetry = { enabled = false } },
|
||||
},
|
||||
}
|
||||
@@ -3,6 +3,7 @@ return {
|
||||
Lua = {
|
||||
runtime = { version = "LuaJIT" },
|
||||
workspace = { checkThirdParty = false, library = { vim.env.VIMRUNTIME } },
|
||||
hint = { enable = true },
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
settings = {
|
||||
nixd = { formatting = { command = { "nixfmt" } } },
|
||||
},
|
||||
}
|
||||
+17
-1
@@ -1,5 +1,21 @@
|
||||
-- bacon runs the checker (plugins/lint.lua), so rust-analyzer keeps its default `cargo check`.
|
||||
return {
|
||||
settings = {
|
||||
["rust-analyzer"] = { check = { command = "clippy" } },
|
||||
["rust-analyzer"] = {
|
||||
cargo = { allFeatures = true, buildScripts = { enable = true } },
|
||||
checkOnSave = true,
|
||||
diagnostics = { enable = true },
|
||||
procMacro = {
|
||||
enable = true,
|
||||
ignored = {
|
||||
["async-trait"] = { "async_trait" },
|
||||
["napi-derive"] = { "napi" },
|
||||
["async-recursion"] = { "async_recursion" },
|
||||
},
|
||||
},
|
||||
files = {
|
||||
excludeDirs = { ".direnv", ".git", ".github", ".gitlab", "bin", "node_modules", "target", "venv", ".venv" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -4,6 +4,7 @@ return {
|
||||
yaml = {
|
||||
schemaStore = { enable = false, url = "" }, -- SchemaStore.nvim supplies them
|
||||
schemas = require("schemastore").yaml.schemas(),
|
||||
keyOrdering = false,
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
Reference in new issue
Block a user