mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +01:00
fix(neotree): make sure spacer ids dont repeat
This commit is contained in:
parent
2fd15290b9
commit
3260fdf196
1 changed files with 4 additions and 1 deletions
|
@ -98,10 +98,13 @@ local function new_button(name)
|
|||
}
|
||||
end
|
||||
|
||||
local counter = 0;
|
||||
|
||||
---@return Item
|
||||
local function spacer()
|
||||
counter = counter + 1
|
||||
return {
|
||||
id = "codemp-ws-spacer-" .. vim.fn.rand() % 1024,
|
||||
id = "codemp-ws-spacer-" .. counter,
|
||||
name = "",
|
||||
type = "spacer",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue