Skip to content

20240220 - v2.12.4

Compare
Choose a tag to compare
@skywind3000 skywind3000 released this 20 Feb 13:48
· 16 commits to master since this release

new g:asyncrun_rooter hook for root detection:

  • each item in the g:asyncrun_rooter dictionary is a function pointer (or name).
  • each function will be called to detect current buffer's root directory, until find one valid result.
  • returns empty string to skip, see the example
let g:asyncrun_rooter = get(g:, 'asyncrun_rooter', {})
function! g:asyncrun_rooter.mydetect()
    if unable_to_detect
        return ''
    endif
    return '/path/to/root'
endfunc