mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
fix(highlight): remove unneeded query management
This commit is contained in:
parent
39968ca258
commit
a48c440f2b
1 changed files with 1 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
local api = vim.api
|
||||
local ts = vim.treesitter
|
||||
|
||||
local queries = require'nvim-treesitter.query'
|
||||
local parsers = require'nvim-treesitter.parsers'
|
||||
local configs = require'nvim-treesitter.configs'
|
||||
|
||||
|
|
@ -98,10 +97,7 @@ function M.attach(bufnr, lang)
|
|||
hlmap[k] = v
|
||||
end
|
||||
|
||||
local query = queries.get_query(lang, "highlights")
|
||||
if not query then return end
|
||||
|
||||
M.highlighters[bufnr] = ts.highlighter.new(parser, query)
|
||||
M.highlighters[bufnr] = ts.highlighter.new(parser, {})
|
||||
end
|
||||
|
||||
function M.detach(bufnr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue