about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-31 17:17:47 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-31 17:17:47 +0200
commit66779241df07d7d7ef17c8f6a7d0e31a1083ce1b (patch)
tree0f8f2bb73ab3b934dff508d344c159fa1a83763e /dotfiles
parentOverlays: Base: Add fd runtime dep to neovim (diff)
downloadnixos-config-66779241df07d7d7ef17c8f6a7d0e31a1083ce1b.tar.gz
nixos-config-66779241df07d7d7ef17c8f6a7d0e31a1083ce1b.tar.bz2
nixos-config-66779241df07d7d7ef17c8f6a7d0e31a1083ce1b.zip
Dotfiles: Nvim: Use telescope git_files
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/nvim/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua
index 5e3da99..963619c 100644
--- a/dotfiles/nvim/init.lua
+++ b/dotfiles/nvim/init.lua
@@ -390,7 +390,8 @@ require('lazy').setup({
       local builtin = require 'telescope.builtin'
       vim.keymap.set('n', '<leader>sh', builtin.help_tags, { desc = '[S]earch [H]elp' })
       vim.keymap.set('n', '<leader>sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' })
-      vim.keymap.set('n', '<leader>sf', builtin.find_files, { desc = '[S]earch [F]iles' })
+      vim.keymap.set('n', '<leader>sf', builtin.git_files, { desc = '[S]earch [F]iles' })
+      vim.keymap.set('n', '<leader>sF', function() builtin.find_files({previewer = false}) end, { desc = '[S]earch [F]iles (non-git)' })
       vim.keymap.set('n', '<leader>ss', builtin.builtin, { desc = '[S]earch [S]elect Telescope' })
       vim.keymap.set('n', '<leader>sw', builtin.grep_string, { desc = '[S]earch current [W]ord' })
       vim.keymap.set('n', '<leader>sg', builtin.live_grep, { desc = '[S]earch by [G]rep' })