refactor: utilize Utils.get_hl to minimize duplicate code (#1701)

This commit is contained in:
Micah Halter
2025-03-24 22:38:23 -04:00
committed by GitHub
parent 25e9b1c111
commit 3a75b7d36f
2 changed files with 8 additions and 17 deletions

View File

@@ -308,7 +308,7 @@ function M.is_valid_buf(bufnr)
end
---@param name string?
---@return table<string, string>
---@return table
function M.get_hl(name)
if not name then return {} end
return api.nvim_get_hl(0, { name = name, link = false })