Skip to content

Commit bb666a5

Browse files
committed
style: rename namespace_id
1 parent cb56c0d commit bb666a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/nvim-tree/renderer/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ local M = {}
1212

1313
local SIGN_GROUP = "NvimTreeRendererSigns"
1414

15-
local namespace_id = vim.api.nvim_create_namespace "NvimTreeHighlights"
15+
local namespace_highlights_id = vim.api.nvim_create_namespace "NvimTreeHighlights"
1616
local namespace_extmarks_id = vim.api.nvim_create_namespace "NvimTreeExtmarks"
1717

1818
---@param bufnr number
@@ -56,11 +56,11 @@ function M.render_hl(bufnr, hl)
5656
if not bufnr or not vim.api.nvim_buf_is_loaded(bufnr) then
5757
return
5858
end
59-
vim.api.nvim_buf_clear_namespace(bufnr, namespace_id, 0, -1)
59+
vim.api.nvim_buf_clear_namespace(bufnr, namespace_highlights_id, 0, -1)
6060
for _, data in ipairs(hl) do
6161
if type(data[1]) == "table" then
6262
for _, group in ipairs(data[1]) do
63-
vim.api.nvim_buf_add_highlight(bufnr, namespace_id, group, data[2], data[3], data[4])
63+
vim.api.nvim_buf_add_highlight(bufnr, namespace_highlights_id, group, data[2], data[3], data[4])
6464
end
6565
end
6666
end

0 commit comments

Comments
 (0)