update dotfiles

This commit is contained in:
2026-07-19 20:39:54 +08:00
parent aef001a855
commit 88c9035c43
18 changed files with 337 additions and 294 deletions
-5
View File
@@ -1,9 +1,6 @@
-- =============================================================================
-- conform.lua — 自动格式化
-- =============================================================================
-- 【保留】你的完整 conform 配置。
-- 【修改】🔧 键位从 <leader>cf 改为 <leader>lf(与 LSP 格式化键统一);
-- ✅ 新增更多语言的 formatter。
return {
{
@@ -11,7 +8,6 @@ return {
event = { "BufWritePre" },
cmd = { "ConformInfo" },
keys = {
-- 🔧 修改:<leader>cf → <leader>lf,与 keymaps.lua 中的 LSP 格式化键一致
{ "<leader>lf", function() require("conform").format({ async = true, lsp_fallback = true }) end, desc = "格式化" },
},
opts = {
@@ -24,7 +20,6 @@ return {
lua = { "stylua" },
c = { "clang-format" },
cpp = { "clang-format" },
-- ✅ 新增:更多语言
python = { "black", "isort" },
javascript = { "prettier" },
typescript = { "prettier" },