mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +01:00
fix: more unique tree ids
This commit is contained in:
parent
192910db5d
commit
5ec9f8050e
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ local M = {}
|
|||
---@return NuiTree.Node
|
||||
local function new_item(workspace, path)
|
||||
return {
|
||||
id = string.format("codemp://%s/%s", workspace, path),
|
||||
id = string.format("codemp://%s/item/%s", workspace, path),
|
||||
name = path,
|
||||
type = "buffer",
|
||||
extra = {},
|
||||
|
@ -36,7 +36,7 @@ end
|
|||
---@return NuiTree.Node
|
||||
local function new_workspace(name, owned, expanded)
|
||||
return {
|
||||
id = "codemp://" .. name,
|
||||
id = "codemp://" .. name .. "/workspace",
|
||||
name = name,
|
||||
type = "workspace",
|
||||
extra = {
|
||||
|
|
Loading…
Reference in a new issue