diff --git a/ftplugin/nimrod.vim b/ftplugin/nimrod.vim index 24970de..1ae76e8 100644 --- a/ftplugin/nimrod.vim +++ b/ftplugin/nimrod.vim @@ -13,6 +13,17 @@ setlocal commentstring=#\ %s compiler nimrod +if executable('nimrod') + let nimrod_paths = split(system('nimrod dump'),'\n') + let &l:tags = &g:tags + + for path in nimrod_paths + if finddir(path) == path + let &l:tags = path . "/tags," . &l:tags + endif + endfor +endif + let &cpo = s:cpo_save unlet s:cpo_save