Allow hyphens in vim ripgrep search

This commit is contained in:
Michael Campagnaro 2022-02-19 00:04:18 -05:00
parent f84fc81f08
commit 0731632c07

3
vimrc
View File

@ -198,6 +198,7 @@ endif
Plug 'tpope/vim-markdown' " Markdown
Plug 'bfrg/vim-cpp-modern' " C/C++
Plug 'rluba/jai.vim' " JAI
Plug 'vim-ruby/vim-ruby' " Ruby
Plug 'fatih/vim-go' " Go
Plug 'rust-lang/rust.vim' " Rust
@ -1191,7 +1192,7 @@ function! Search(case_sensitive, search_args)
let l:rg_args .= " --ignore-case"
endif
exec 'Rg ' . l:rg_args . ' "' . l:term . '"'
exec 'Rg ' . l:rg_args . ' -e "' . l:term . '"'
endfunction
" Case insensitive