From c2439bfe72e2b86d79aa2e67234ac488496b4cea Mon Sep 17 00:00:00 2001 From: laily Date: Sun, 10 May 2026 14:50:09 +0800 Subject: [PATCH] feat: disable some features of snacks --- nvim/lazy-lock.json | 1 + nvim/lazyvim.json | 2 +- nvim/lua/plugins/sidekick.lua | 2 +- nvim/lua/plugins/snacks.lua | 2 ++ nvim/lua/plugins/telescope.lua | 2 ++ 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index c78d685..fe85b6d 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -12,6 +12,7 @@ "conform.nvim": { "branch": "master", "commit": "086a40dc7ed8242c03be9f47fbcee68699cc2395" }, "dashboard-nvim": { "branch": "master", "commit": "0775e567b6c0be96d01a61795f7b64c1758262f6" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, + "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" }, "flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" }, "friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" }, "fzf-lua": { "branch": "main", "commit": "c9e7b7bfbd01f949164988ee1684035468e1995c" }, diff --git a/nvim/lazyvim.json b/nvim/lazyvim.json index d4a28da..063899b 100644 --- a/nvim/lazyvim.json +++ b/nvim/lazyvim.json @@ -1,6 +1,6 @@ { "extras": [ - "lazyvim.plugins.extras.editor.snacks_picker", + "lazyvim.plugins.extras.editor.telescope", "lazyvim.plugins.extras.test.core", "lazyvim.plugins.extras.lang.go", "lazyvim.plugins.extras.lang.typescript", diff --git a/nvim/lua/plugins/sidekick.lua b/nvim/lua/plugins/sidekick.lua index a7cd3e7..fbb34d9 100644 --- a/nvim/lua/plugins/sidekick.lua +++ b/nvim/lua/plugins/sidekick.lua @@ -5,7 +5,7 @@ return { cli = { mux = { backend = vim.env.ZELLIJ and "zellij" or "tmux", - enabled = vim.fn.executable("zellij") == 1 or vim.fn.executable("tmux") == 1, + enabled = false, }, }, }, diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua index 3ab7733..5dde524 100644 --- a/nvim/lua/plugins/snacks.lua +++ b/nvim/lua/plugins/snacks.lua @@ -2,6 +2,8 @@ return { { "folke/snacks.nvim", opts = { + -- LazyVim 仍依赖 snacks 核心(通知、dashboard 等);关闭 picker,统一用 Telescope。 + picker = { enabled = false }, image = { -- tmux / 部分终端不报 kitty graphics;避免 :checkhealth 里出现 ERROR(仍会 WARN) force = true, diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 7b4c77b..5172900 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -1,6 +1,8 @@ return { { "telescope.nvim", + -- 未启用 `editor.telescope` extra 时 Lazy 不会注册 `:Telescope`,自定义 `Telescope …` 键会失效。 + cmd = { "Telescope" }, dependencies = { { "nvim-telescope/telescope-fzf-native.nvim",