Allow hyphens in vim ripgrep search
This commit is contained in:
parent
f84fc81f08
commit
0731632c07
3
vimrc
3
vimrc
|
@ -198,6 +198,7 @@ endif
|
||||||
|
|
||||||
Plug 'tpope/vim-markdown' " Markdown
|
Plug 'tpope/vim-markdown' " Markdown
|
||||||
Plug 'bfrg/vim-cpp-modern' " C/C++
|
Plug 'bfrg/vim-cpp-modern' " C/C++
|
||||||
|
Plug 'rluba/jai.vim' " JAI
|
||||||
Plug 'vim-ruby/vim-ruby' " Ruby
|
Plug 'vim-ruby/vim-ruby' " Ruby
|
||||||
Plug 'fatih/vim-go' " Go
|
Plug 'fatih/vim-go' " Go
|
||||||
Plug 'rust-lang/rust.vim' " Rust
|
Plug 'rust-lang/rust.vim' " Rust
|
||||||
|
@ -1191,7 +1192,7 @@ function! Search(case_sensitive, search_args)
|
||||||
let l:rg_args .= " --ignore-case"
|
let l:rg_args .= " --ignore-case"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
exec 'Rg ' . l:rg_args . ' "' . l:term . '"'
|
exec 'Rg ' . l:rg_args . ' -e "' . l:term . '"'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Case insensitive
|
" Case insensitive
|
||||||
|
|
Loading…
Reference in New Issue
Block a user