- remove broken mini.files mappings (plugin disabled; yazi is used now) - dedupe tint.nvim spec (drop plugins/theme.lua, keep ui.lua) - drop dead copilot cmp source + moot Supermaven symbol (Supermaven stays inline) - remove yaml from biome formatters (biome has no yaml support) - collapse 3x biome chain to a single biome-check pass - remove duplicate insert-mode jk mapping - lazy-load tailwind-tools by filetype - diagnostics: update_in_insert = false - untrack .nvimlog, add .gitignore - auto-reload files changed on disk (autoread + checktime autocmds) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
826 B
Lua
37 lines
826 B
Lua
local options = {
|
|
formatters_by_ft = {
|
|
lua = { "stylua" },
|
|
rust = { "rustfmt", require_cwd = true },
|
|
-- biome-check runs format + organize-imports + safe lint fixes in one pass
|
|
javascript = { "biome-check" },
|
|
typescript = { "biome-check" },
|
|
json = { "biome-check" },
|
|
solidity = { "forge_fmt" },
|
|
nix = { "nixfmt" },
|
|
toml = { "taplo" },
|
|
elixir = { "mix" },
|
|
cpp = { "clang-format" },
|
|
kotlin = { "ktlint" },
|
|
},
|
|
formatters = {
|
|
biome = { require_cwd = true },
|
|
rustfmt = {
|
|
args = { "--edition", "2024" },
|
|
},
|
|
},
|
|
|
|
format_after_save = function()
|
|
local buf_path = vim.api.nvim_buf_get_name(0)
|
|
if buf_path:find "/contrib/" then
|
|
return nil
|
|
end
|
|
|
|
return {
|
|
timeout_ms = 1000,
|
|
lsp_format = "fallback",
|
|
}
|
|
end,
|
|
}
|
|
|
|
return options
|