mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
fix: filetree is a method
This commit is contained in:
parent
dd5bdfcb8a
commit
d4e13c9f8f
3 changed files with 3 additions and 3 deletions
|
@ -162,7 +162,7 @@ vim.api.nvim_create_user_command(
|
||||||
if state.client ~= nil and state.workspace ~= nil then
|
if state.client ~= nil and state.workspace ~= nil then
|
||||||
local ws = state.client:get_workspace(state.workspace)
|
local ws = state.client:get_workspace(state.workspace)
|
||||||
if ws ~= nil then
|
if ws ~= nil then
|
||||||
return filter(lead, ws.filetree)
|
return filter(lead, ws:filetree())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,7 +23,7 @@ local function update_window()
|
||||||
local buffer_to_row = {}
|
local buffer_to_row = {}
|
||||||
local user_to_row = {}
|
local user_to_row = {}
|
||||||
local off = {}
|
local off = {}
|
||||||
local tree = state.client:get_workspace(state.workspace).filetree
|
local tree = state.client:get_workspace(state.workspace):filetree()
|
||||||
vim.api.nvim_set_option_value('modifiable', true, { buf = buffer_id })
|
vim.api.nvim_set_option_value('modifiable', true, { buf = buffer_id })
|
||||||
local tmp = ">| codemp\n"
|
local tmp = ">| codemp\n"
|
||||||
tmp = tmp .. " |: " .. state.workspace .. "\n"
|
tmp = tmp .. " |: " .. state.workspace .. "\n"
|
||||||
|
|
|
@ -84,7 +84,7 @@ local function leave()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function open_buffer_tree()
|
local function open_buffer_tree()
|
||||||
local tree = state.client:get_workspace(state.workspace).filetree
|
local tree = state.client:get_workspace(state.workspace):filetree()
|
||||||
if tree_buf == nil then
|
if tree_buf == nil then
|
||||||
tree_buf = vim.api.nvim_create_buf(false, true)
|
tree_buf = vim.api.nvim_create_buf(false, true)
|
||||||
vim.api.nvim_buf_set_name(tree_buf, "codemp::" .. state.workspace)
|
vim.api.nvim_buf_set_name(tree_buf, "codemp::" .. state.workspace)
|
||||||
|
|
Loading…
Reference in a new issue