diff --git a/after/plugin/git_stuff.lua b/after/plugin/git_stuff.lua index 91c3d28..96cb128 100644 --- a/after/plugin/git_stuff.lua +++ b/after/plugin/git_stuff.lua @@ -40,7 +40,7 @@ require('gitsigns').setup{ map('n', 'hR', gitsigns.reset_buffer, { desc = 'reset buffer' }) map('n', 'hp', gitsigns.preview_hunk, { desc = 'preview hunk' }) map('n', 'hb', function() gitsigns.blame_line{full=true} end, { desc = 'hunk blame' }) - map('n', 'tb', gitsigns.toggle_current_line_blame, { desc = 'toggle single line blame' }) + map('n', 'tob', gitsigns.toggle_current_line_blame, { desc = '[t]oggle [o]ne line [b]lame' }) map('n', 'hd', gitsigns.diffthis, { desc = 'hunk diff' }) map('n', 'hD', function() gitsigns.diffthis('~') end, { desc = 'diff deleted' }) map('n', 'td', gitsigns.toggle_deleted, { desc = 'toggle deleted' }) diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index f86d0ad..c85828c 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -12,6 +12,10 @@ require('telescope').setup{ local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin.find_files, { desc = "Find files" }) vim.keymap.set('n', 'fg', builtin.live_grep, { desc = "Find in live grep" }) +vim.keymap.set('n', 'faf', + function() + require('telescope.builtin').find_files({ hidden = true, additional_args = { "-u" } }) + end, { desc = "Find all files(including ignored files)" }) vim.keymap.set('n', 'fag', function() require('telescope.builtin').live_grep({ additional_args = { "-u" } })