mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
fix: refactor after upstream refactor
This commit is contained in:
parent
e5434fc21e
commit
98b7515014
3 changed files with 20 additions and 106 deletions
|
|
@ -9,7 +9,7 @@ local M = {
|
|||
highlighters = {}
|
||||
}
|
||||
|
||||
local hlmap = vim.treesitter.TSHighlighter.hl_map
|
||||
local hlmap = vim.treesitter.highlighter.hl_map
|
||||
|
||||
-- Misc
|
||||
hlmap.error = "TSError"
|
||||
|
|
@ -79,7 +79,7 @@ function M.attach(bufnr, lang)
|
|||
local query = queries.get_query(lang, "highlights")
|
||||
if not query then return end
|
||||
|
||||
M.highlighters[bufnr] = ts.TSHighlighter.new(query, bufnr, lang)
|
||||
M.highlighters[bufnr] = ts.highlighter.new(query, bufnr, lang)
|
||||
end
|
||||
|
||||
function M.detach(bufnr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue