Skip to content

Commit

Permalink
fix: minor change to nvim treesitter check
Browse files Browse the repository at this point in the history
refer: #2389
  • Loading branch information
lervag committed May 12, 2022
1 parent 3d2d25a commit dfaca59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/tex.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ call vimtex#init()
" Check if user has tree-sitter enabled and give a warning if that is the case.
" This is useful, since a lot of users are not aware of the clash between
" VimTeX's syntax highlighting and Tree-sitters syntax highlighting.
if has('nvim')
if has('nvim-0.5')
\ && g:vimtex_syntax_enabled
\ && !g:vimtex_syntax_conceal_disable
call timer_start(1000, 'vimtex#nvim#check_treesitter')
Expand Down

2 comments on commit dfaca59

@paniash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Is it possible to disable this warning for people who are interested in using treesitter with LaTeX?

@lervag
Copy link
Owner Author

@lervag lervag commented on dfaca59 May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course. Simply add let g:vimtex_syntax_enabled = 0.

Please sign in to comment.