File: nvim.vim

package info (click to toggle)
vim-vimtex 2.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (16 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" VimTeX - LaTeX plugin for Vim
"
" Maintainer: Karl Yngve LervÄg
" Email:      karl.yngve@gmail.com
"

function! vimtex#nvim#check_treesitter(bufnr, ...) abort " {{{1
  if empty(getbufvar(a:bufnr, '&syntax')) && luaeval(
        \ 'require("vim.treesitter.highlighter").active[_A] ~= nil',
        \ a:bufnr
        \)
    call vimtex#log#error('Syntax highlighting is controlled by Treesitter!')
  endif
endfunction

" }}}1