From e33623811690f9a2bec16c6d0fedbe4b722d5695 Mon Sep 17 00:00:00 2001 From: xyz Date: Fri, 21 Oct 2022 23:59:34 -0700 Subject: init.vim decrease g:markdown_minlines due to performace decrease --- home/xyz/.config/nvim/init.vim | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'home/xyz/.config/nvim/init.vim') 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 -- cgit v1.2.3-70-g09d2