vibe-coding-cn/libs/external/my-nvim/nvim-config/lua/config/keymaps.lua

16 lines
683 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
-- ==================== 文件搜索:包含隐藏/被忽略文件 ====================
-- 说明:
-- - LazyVim 默认 <leader>ff 通常不包含 .gitignore 忽略的文件
-- - 这个快捷键用于“真的找不到文件时”兜底(例如 .env
vim.keymap.set("n", "<leader>fF", function()
require("telescope.builtin").find_files({
hidden = true,
no_ignore = true,
no_ignore_parent = true,
})
end, { desc = "Find All Files (hidden + ignored)" })