Fix safety check for TS hl-info

This commit is contained in:
Andy K. Massimino
2023-01-18 12:53:30 -05:00
parent 1f1ac485e7
commit e75ffcdbdd

View File

@@ -9,7 +9,7 @@ local ts_utils = require "nvim-treesitter.ts_utils"
local M = {}
if vim.treesitter.highlighter.hl_map and not vim.fn.has('nvim-0.9.0') then
if vim.treesitter.highlighter.hl_map and vim.fn.has('nvim-0.9.0') == 0 then
function M.get_treesitter_hl(cursor)
local buf = vim.api.nvim_get_current_buf()
local row, col = unpack(cursor or vim.api.nvim_win_get_cursor(0))