refactor(#2826): move all winhl to appearance constants

This commit is contained in:
Alexander Courtis
2025-06-16 13:00:33 +10:00
parent 76186fa64b
commit 5377a3fd69
4 changed files with 32 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
local M = {}
local appearance = require("nvim-tree.appearance")
local utils = require("nvim-tree.utils")
local view = require("nvim-tree.view")
local M = {}
local function hide(win)
if win then
@@ -72,7 +72,7 @@ local function show(opts)
style = "minimal",
border = "none"
})
vim.wo[M.popup_win].winhl = view.View.winopts.winhl
vim.wo[M.popup_win].winhl = appearance.WIN_HL
local ns_id = vim.api.nvim_get_namespaces()["NvimTreeHighlights"]
local extmarks = vim.api.nvim_buf_get_extmarks(0, ns_id, { line_nr - 1, 0 }, { line_nr - 1, -1 }, { details = true })