mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
Update name for the neovim highlighter.
The name of the highlighter is TSHighlighter in the latest neovim nightly, so I've made the adjustment here.
This commit is contained in:
parent
ed3469b59f
commit
4967a3b32b
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ local M = {
|
|||
highlighters = {}
|
||||
}
|
||||
|
||||
local hlmap = vim.treesitter.highlighter.hl_map
|
||||
local hlmap = vim.treesitter.TSHighlighter.hl_map
|
||||
|
||||
-- Misc
|
||||
hlmap.error = "TSError"
|
||||
|
|
@ -80,7 +80,7 @@ function M.attach(bufnr, lang)
|
|||
local query = queries.get_query(lang, "highlights")
|
||||
if not query then return end
|
||||
|
||||
M.highlighters[bufnr] = ts.highlighter.new(query, bufnr, lang)
|
||||
M.highlighters[bufnr] = ts.TSHighlighter.new(query, bufnr, lang)
|
||||
end
|
||||
|
||||
function M.detach(bufnr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue