diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 45d3f2f..2ee00c6 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -57,6 +57,7 @@ Plug 'hrsh7th/vim-vsnip' Plug 'prettier/vim-prettier', { 'do': 'npm install --omit=dev' } " File finder +Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' " Make telescope faster by adding native FZF sorter @@ -268,6 +269,7 @@ telescope.setup { }, vimgrep_arguments = { "rg", + "--smart-case", "--no-heading", "--with-filename", "--line-number", @@ -291,9 +293,10 @@ EOF " map Telescope to ctrl+p nnoremap Telescope live_grep search="" -command -nargs=1 Rg :Telescope live_grep default_text="" +command -nargs=1 Rg :Telescope live_grep default_text= " map other pickers +nnoremap ff Telescope find_files search="" nnoremap gc Telescope git_commits search="" nnoremap gb Telescope git_branches search="" nnoremap bb Telescope buffers search=""