mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
feat: Allow to configure to use syntax and tree-sitter together
This commit is contained in:
parent
5c00f8ede1
commit
ff9bf6dc2b
2 changed files with 5 additions and 1 deletions
|
|
@ -104,6 +104,9 @@ function M.attach(bufnr, lang)
|
|||
end
|
||||
|
||||
ts.highlighter.new(parser, {})
|
||||
if config.additional_vim_regex_highlighting then
|
||||
api.nvim_buf_set_option(bufnr, 'syntax', 'ON')
|
||||
end
|
||||
end
|
||||
|
||||
function M.detach(bufnr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue