Skip to content

Commit

Permalink
Properly filter files. See the ripgrep patch at
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Jul 5, 2023
1 parent a252e1c commit 6cbf690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ telescope.setup { defaults = { mappings = { i = { ["<esc>"] = telescope_actions.
-- Telescope for nvim UI
require "dressing".setup { select = { telescope = tele_theme_cursor } }

nmap("<C-p>", function() tele_builtin.find_files(theme()) end)
nmap("<C-p>",
function() tele_builtin.find_files({ theme = theme(), find_command = { "bash","-c", "PATH=$PATH:~/.cargo/bin rg --files --one-file-system --color never --sort modified" } }) end)
nmap("<C-g>", function() tele_builtin.oldfiles(theme()) end)
nmap("<C-e>", function() tele_builtin.treesitter(theme()) end)
nmap("<C-A-p>", function() tele_builtin.grep_string(theme()) end)
Expand Down

0 comments on commit 6cbf690

Please sign in to comment.