Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions plugin/goto_header.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ if exists('g:goto_header_loadded')
endif
let g:goto_header_loadded = 1

let which_fd = system('which fd')[0]
let which_fdfind = system('which fdfind')[0]

" check fd binary name (needed because it's called fdfdind on ubuntu)
" Then check if it's installed
if system('which fd')[0] ==# '/'
if (which_fd ==# '/' || which_fd ==#'C')
let g:goto_header_fd_binary_name = 'fd'
elseif system('which fdfind')[0] ==# '/'
elseif (which_fdfind ==# '/' || which_fdfind ==#'C')
let g:goto_header_fd_binary_name = 'fdfind'
else
echoerr "fd not found, please install it"
Expand Down