mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +01:00
fix: distinguish id of owned/not owned workspaces
This commit is contained in:
parent
b4e4d302bd
commit
5d2f7fa2c7
1 changed files with 3 additions and 1 deletions
|
@ -35,8 +35,10 @@ end
|
||||||
---@param expanded? boolean if node should be pre-expanded
|
---@param expanded? boolean if node should be pre-expanded
|
||||||
---@return NuiTree.Node
|
---@return NuiTree.Node
|
||||||
local function new_workspace(name, owned, expanded)
|
local function new_workspace(name, owned, expanded)
|
||||||
|
local owned_ext = ""
|
||||||
|
if owned then owned_ext = "_owned" end
|
||||||
return {
|
return {
|
||||||
id = "codemp://" .. name .. "/workspace",
|
id = "codemp://" .. name .. "/workspace" .. owned_ext,
|
||||||
name = name,
|
name = name,
|
||||||
type = "workspace",
|
type = "workspace",
|
||||||
extra = {
|
extra = {
|
||||||
|
|
Loading…
Reference in a new issue