Add bufferline options to always show the bufferline, use ordinal numbers, and sort by insert position in the current setup
This commit is contained in:
parent
e7b27047e2
commit
606b0572d2
6 changed files with 28 additions and 36 deletions
17
after/plugin/grep.vim
Normal file
17
after/plugin/grep.vim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
set grepprg=rg\ --vimgrep
|
||||
|
||||
function! Grep(...)
|
||||
return system(join([&grepprg] + [expandcmd(join(a:000, ' '))], ' '))
|
||||
endfunction
|
||||
|
||||
command! -nargs=+ -complete=file_in_path -bar Grep cgetexpr Grep(<f-args>)
|
||||
command! -nargs=+ -complete=file_in_path -bar LGrep lgetexpr Grep(<f-args>)
|
||||
|
||||
cnoreabbrev <expr> grep (getcmdtype() ==# ':' && getcmdline() ==# 'grep') ? 'Grep' : 'grep'
|
||||
cnoreabbrev <expr> lgrep (getcmdtype() ==# ':' && getcmdline() ==# 'lgrep') ? 'LGrep' : 'lgrep'
|
||||
|
||||
augroup quickfix
|
||||
autocmd!
|
||||
autocmd QuickFixCmdPost cgetexpr TroubleToggle quickfix
|
||||
autocmd QuickFixCmdPost lgetexpr TroubleToggle loclist
|
||||
augroup END
|
||||
Loading…
Add table
Add a link
Reference in a new issue