diff options
author | xyz <gky44px1999@gmail.com> | 2022-10-21 23:59:34 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-10-21 23:59:34 -0700 |
commit | e33623811690f9a2bec16c6d0fedbe4b722d5695 (patch) | |
tree | dcc6e690e7ca1c3d7568ddb61bf39b1f8da53400 /home/xyz/.config/nvim | |
parent | 789e900d18cf632691b75820c8a30a1fe7049442 (diff) |
init.vim decrease g:markdown_minlines due to performace decrease
Diffstat (limited to 'home/xyz/.config/nvim')
-rw-r--r-- | home/xyz/.config/nvim/init.vim | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index d0b8e3b9..243b8028 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -10,8 +10,12 @@ call plug#begin() "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) } } " chriskempson/base16-vim doesn't do bold/italic for markdown syntax, and not maintained -" fnune/base16-vim and RRethy/nvim-base16 seem both work, both support tree-sitter -Plug 'fnune/base16-vim' +" tinted-theming/base16-vim and RRethy/nvim-base16 seem both work, both support tree-sitter +" I prefer tinted-theming/base16-vim in the past because of darker status bar color? +" oct.21 2022, nvim-treesitter obsolete some highlight groups? so tinted-theming/base16-vim does not work for treesitter now, see: +" https://github.com/nvim-treesitter/nvim-treesitter/commit/42ab95d5e11f247c6f0c8f5181b02e816caa4a4f +" https://github.com/RRethy/nvim-base16/issues/62 +Plug 'tinted-theming/base16-vim' " nvim-treesitter does not support markdown right now, so wait "Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update " use latest vim-markdown @@ -57,7 +61,8 @@ augroup END " :h markdown, for vim default tpope/vim-markdown "let g:markdown_folding = 1 -let g:markdown_minlines = 500 +" g:markdown_minlines before nvim 0.8, 500 works well; version 0.8 makes even 400 noticeable slow when gk +let g:markdown_minlines = 350 "let g:markdown_fenced_languages = ['python', 'sh', 'vim', 'c', 'cpp'] " netrw-p preview vertial split |