Conditionally set the runtime path

This commit is contained in:
Josh Sherman 2024-06-18 20:54:23 -05:00
parent 87fbd01e21
commit 519fa2ab98
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -44,12 +44,11 @@ autocmd FileType markdown,text setl tw=80 wm=2
autocmd BufWritePre * :%s/\s\+$//e autocmd BufWritePre * :%s/\s\+$//e
" TODO: Make this configurable to handle multiple OSes " Set the runtime path for fzf based on OS
" Arch Linux: set rtp+=~/.fzf if has('mac')
" Thought this was Debian: set rtp+=/usr/local/opt/fzf set rtp+=/opt/homebrew/opt/fzf
" This is Debian: source /usr/share/doc/fzf/examples/fzf.vim elseif executable('apt')
" This works for Debian too: set rtp+=/usr/share/doc/fzf/examples
" set rtp+=/usr/share/doc/fzf/examples elseif executable('pacman')
" macOS: set rtp+=/opt/homebrew/opt/fzf rtp+=~/.fzf
" set rtp+=/usr/local/opt/fzf endif
set rtp+=/opt/homebrew/opt/fzf