From d73b5289c91a1f6ba04aa776ea27c4e2dc01c616 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 4 May 2024 20:36:24 -0700 Subject: nvim config more universal, so all my computers can have the same config --- home/xyz/.config/nvim/init.vim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'home') diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index 650712d7..4fbfebae 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -8,7 +8,9 @@ call plug#begin() "Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } "Plug 'junegunn/fzf.vim' "Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' } -Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } +if has('nvim') && executable('firefox') + Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } +endif " tinted-theming/base16-vim has low contrast on fold title make it unreadable, but I customized it easily " chriskempson/base16-vim doesn't do bold/italic for markdown syntax, and not maintained " RRethy/base16-nvim does not highlight markdown codeblocks @@ -21,12 +23,16 @@ Plug 'tinted-theming/base16-vim' " use latest vim-markdown Plug 'tpope/vim-markdown' " alternatives: h-hg/fcitx.nvim, rlue/vim-barbaric, lilydjwg/fcitx.vim -Plug 'rlue/vim-barbaric' +if executable('fcitx5') + Plug 'rlue/vim-barbaric' +endif " alternatives: 'thinca/vim-ref' with 'eiiches/vim-ref-info', 'HiPhish/info.vim', 'alx741/vinfo' Plug 'https://gitlab.com/HiPhish/info.vim.git' " :h hexmode " other related doc: :h hex-editing, :h 23.3, :h edit-binary -Plug 'fidian/hexmode' +if executable('xxd') + Plug 'fidian/hexmode' +endif call plug#end() " next line must put below `Plug 'glacambre/firenvim'`, else if click github issue textarea, then click elsewhere, then click textarea, textarea will not be selected (no cursor in it), not sure why -- cgit v1.2.3-70-g09d2