Skip to content

Commit

Permalink
Pass bufnr to TS configs.is_enabled (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejboczar authored Oct 1, 2022
1 parent 80ad781 commit 3fa1b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/treesitter-matchup/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ local cache = lru.new(150)
function M.is_enabled(bufnr)
bufnr = bufnr or api.nvim_get_current_buf()
local lang = parsers.get_buf_lang(bufnr)
return configs.is_enabled('matchup', lang)
return configs.is_enabled('matchup', lang, bufnr)
end

function M.is_hl_enabled(bufnr)
bufnr = bufnr or api.nvim_get_current_buf()
local lang = parsers.get_buf_lang(bufnr)
return configs.is_enabled('highlight', lang)
return configs.is_enabled('highlight', lang, bufnr)
end

function M.get_matches(bufnr)
Expand Down

0 comments on commit 3fa1b22

Please sign in to comment.