diff options
author | tafryn <[email protected]> | 2021-05-26 21:06:06 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-27 00:06:06 -0400 |
commit | d0f87322f93aa4a7d2f7ec165afc90e83da23660 (patch) | |
tree | fa096dc7dcd75321c1a1f326b405cfdd949e4c68 /vimscript/functions.vim | |
parent | 12b5dc796fd6080e9e94b33e5bfa5a15ce8e0fc4 (diff) |
QuickFix quality of life (#435)
* Exclude the quickfix buffer from the barbar buffer list
* Add mapping and function to toggle the quickfix window
Diffstat (limited to 'vimscript/functions.vim')
-rw-r--r-- | vimscript/functions.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vimscript/functions.vim b/vimscript/functions.vim index 78da3589..0c86ff5e 100644 --- a/vimscript/functions.vim +++ b/vimscript/functions.vim @@ -63,3 +63,11 @@ autocmd User GoyoLeave set laststatus=2 " autocmd! User GoyoEnter lua require('galaxyline').disable_galaxyline() " autocmd! User GoyoLeave lua require('galaxyline').galaxyline_augroup() + +function! QuickFixToggle() + if empty(filter(getwininfo(), 'v:val.quickfix')) + copen + else + cclose + endif +function |