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
|
---@return NuiTree.Node
|
||||||
local function new_item(workspace, path)
|
local function new_item(workspace, path)
|
||||||
return {
|
return {
|
||||||
id = string.format("codemp://%s/%s", workspace, path),
|
id = string.format("codemp://%s/item/%s", workspace, path),
|
||||||
name = path,
|
name = path,
|
||||||
type = "buffer",
|
type = "buffer",
|
||||||
extra = {},
|
extra = {},
|
||||||
|
@ -36,7 +36,7 @@ end
|
||||||
---@return NuiTree.Node
|
---@return NuiTree.Node
|
||||||
local function new_workspace(name, owned, expanded)
|
local function new_workspace(name, owned, expanded)
|
||||||
return {
|
return {
|
||||||
id = "codemp://" .. name,
|
id = "codemp://" .. name .. "/workspace",
|
||||||
name = name,
|
name = name,
|
||||||
type = "workspace",
|
type = "workspace",
|
||||||
extra = {
|
extra = {
|
||||||
|
|
Loading…
Reference in a new issue