Use vim.hl if available (#1809)

This commit is contained in:
Jae-Won Chung
2025-04-07 03:04:37 -04:00
committed by GitHub
parent f83378a67e
commit 40ffc0f5fa
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ local fn = vim.fn
local NAMESPACE = api.nvim_create_namespace("avante_selection")
local SELECTED_CODE_NAMESPACE = api.nvim_create_namespace("avante_selected_code")
local PRIORITY = vim.highlight.priorities.user
local PRIORITY = (vim.hl or vim.highlight).priorities.user
---@class avante.Selection
---@field selection avante.SelectionResult | nil