Skip to content

Commit 2036eec

Browse files
committed
perf(#3257): remove appearance setup
1 parent f917e9d commit 2036eec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function M.setup(config_user)
288288
log.raw("config", "%s\n", vim.inspect(config.g))
289289
end
290290

291-
require("nvim-tree.appearance").define_hi()
291+
require("nvim-tree.appearance").set_hl()
292292

293293
require("nvim-tree.view-state").initialize()
294294

lua/nvim-tree/appearance/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ M.LEGACY_LINKS = {
183183
}
184184

185185
---Create all highlight groups and links. Idempotent.
186-
function M.define_hi()
186+
function M.set_hl()
187187
-- non-linked
188188
for _, g in ipairs(M.HIGHLIGHT_GROUPS) do
189189
if g.def then

lua/nvim-tree/explorer/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function Explorer:create_autocmds()
8888
vim.api.nvim_create_autocmd("ColorScheme", {
8989
group = self.augroup_id,
9090
callback = function()
91-
appearance.define_hi()
91+
appearance.set_hl()
9292
view.reset_winhl()
9393
self.renderer:draw()
9494
end,

0 commit comments

Comments
 (0)