new: ripgrep show hidden files

This commit is contained in:
Matthew Ryan Dillon 2022-05-24 11:53:13 -07:00
parent 766edf680a
commit b1dd2c897a
4 changed files with 6 additions and 1 deletions

View file

@ -15,6 +15,7 @@
path: git/gitignore_global
~/.npmrc: npmrc
~/.psqlrc: psqlrc
~/.ripgreprc: ripgreprc
~/.zpreztorc: zsh/zpreztorc
~/.zlogin: zsh/zlogin
~/.zlogout: zsh/zlogout

View file

@ -35,7 +35,9 @@ return require('packer').startup(function()
{ 'kyazdani42/nvim-web-devicons' },
},
config = function()
vim.api.nvim_set_keymap('n', '-', '<cmd>Telescope find_files<CR>', { noremap = true })
vim.api.nvim_set_keymap('n', '-',
':Telescope find_files find_command=rg,--ignore,--ignore-case,--hidden,--files<CR>',
{ noremap = true })
end,
}

1
ripgreprc Normal file
View file

@ -0,0 +1 @@
--glob=!.git/*

View file

@ -78,3 +78,4 @@ done
export -U PATH
export CONDA_ENVS_PATH=$HOME/.conda/envs:/opt/miniconda3/envs
export CONDA_PKGS_DIRS=$HOME/.conda/pkgs
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc