fix nvim: neo-tree 暫時關閉圖片預覽(目前功能是壞的)

This commit is contained in:
Yuan Chiu 2025-05-01 18:24:35 +08:00
parent 3519892943
commit b3ef08caf3

View File

@ -20,6 +20,7 @@ return {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
-- "3rd/image.nvim",
-- {"3rd/image.nvim", -- {"3rd/image.nvim",
-- build = false, -- build = false,
-- opts = { -- opts = {
@ -222,7 +223,7 @@ return {
["<2-LeftMouse>"] = "open", ["<2-LeftMouse>"] = "open",
["<cr>"] = "open", ["<cr>"] = "open",
["<esc>"] = "cancel", -- close preview or floating neo-tree window ["<esc>"] = "cancel", -- close preview or floating neo-tree window
["P"] = { "toggle_preview", config = { use_float = true, use_image_nvim = true } }, ["P"] = { "toggle_preview", config = { use_float = true, use_image_nvim = false } },
-- Read `# Preview Mode` for more information -- Read `# Preview Mode` for more information
["l"] = "focus_preview", ["l"] = "focus_preview",
["S"] = "open_split", ["S"] = "open_split",