diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-05-04 20:36:24 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-05-04 20:36:24 -0700 |
commit | d73b5289c91a1f6ba04aa776ea27c4e2dc01c616 (patch) | |
tree | 60cf15cd094b87233061e068e83940829bc2f534 /home/xyz/.config/nvim | |
parent | 691be6f9cfe5ac04d6391d59c3a25998b9d5aa81 (diff) |
nvim config more universal, so all my computers can have the same config
Diffstat (limited to 'home/xyz/.config/nvim')
-rw-r--r-- | home/xyz/.config/nvim/init.vim | 12 |
1 files changed, 9 insertions, 3 deletions
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 |