Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: slow down in markdown #106

Open
0rtz opened this issue Apr 1, 2024 · 5 comments
Open

[Bug]: slow down in markdown #106

0rtz opened this issue Apr 1, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@0rtz
Copy link

0rtz commented Apr 1, 2024

Neovim version

0.9.5

Language affected

markdown

Query

No response

Strategy

No response

Description

Hello. I'm experiencing lags on big markdown files containing a lot of code blocks, when using rainbow-delimiters plugins. 

minimal `init.vim`:


let g:my_plug_dir = $HOME . '/.tmp/init.vim-debug'
if !filereadable(g:my_plug_dir . '/autoload/plug.vim')
	silent execute '!curl -fLo '.g:my_plug_dir.'/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
	execute 'source ' . g:my_plug_dir . '/autoload/plug.vim'
end

call plug#begin(g:my_plug_dir . '/vim-plug')
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdateSync'}
Plug 'hiphish/rainbow-delimiters.nvim'
call plug#end()

if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
	echom 'Some modules are missing, running :PlugInstall'
	PlugInstall
endif

lua <<EOF
	require'nvim-treesitter.configs'.setup {
		auto_install = true,
		highlight = {
			enable = true,
		},
	}
EOF
@0rtz 0rtz added the bug Something isn't working label Apr 1, 2024
@0rtz
Copy link
Author

0rtz commented Apr 1, 2024

Example of markdown file in which problem occurs:
test.md

E.g. when i try to delete any line with dd operator insinde test.md noticeable delay occurs. Unfortunately, i do not know how to measure this delay in neovim.

@HiPhish
Copy link
Owner

HiPhish commented Apr 1, 2024 via email

@0rtz
Copy link
Author

0rtz commented Apr 1, 2024

@HiPhish I did post it in the comment above

@HiPhish
Copy link
Owner

HiPhish commented Apr 1, 2024 via email

@HiPhish
Copy link
Owner

HiPhish commented Nov 3, 2024

I have pushed a major update to rainbow-delimiters, can you please try the current master or the tag v0.7.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants