2024-08-24 01:58:03 +02:00
|
|
|
local bridge = require("codemp.neo-tree.bridge")
|
|
|
|
|
|
|
|
local M = { name = "codemp" }
|
|
|
|
|
|
|
|
M.navigate = function(state, path)
|
|
|
|
if path == nil then
|
|
|
|
path = vim.fn.getcwd()
|
|
|
|
end
|
|
|
|
state.path = path
|
|
|
|
bridge.update_state(state)
|
|
|
|
end
|
|
|
|
|
|
|
|
M.setup = function(config, global_config)
|
|
|
|
end
|
|
|
|
|
|
|
|
M.default_config = {
|
|
|
|
renderers = {
|
2024-09-07 04:01:48 +02:00
|
|
|
title = {
|
|
|
|
{ "name" },
|
|
|
|
},
|
2024-08-24 01:58:03 +02:00
|
|
|
spacer = {
|
|
|
|
{ "indent" },
|
|
|
|
},
|
|
|
|
root = {
|
|
|
|
{ "icon" },
|
|
|
|
{ "name" },
|
|
|
|
},
|
|
|
|
workspace = {
|
|
|
|
{ "indent" },
|
|
|
|
{ "icon" },
|
|
|
|
{ "name" },
|
|
|
|
},
|
|
|
|
user = {
|
|
|
|
{ "indent" },
|
|
|
|
{ "icon" },
|
|
|
|
{ "name" },
|
2024-10-02 23:13:00 +02:00
|
|
|
{ "buffer" },
|
2024-08-24 01:58:03 +02:00
|
|
|
},
|
|
|
|
buffer = {
|
|
|
|
{ "indent" },
|
|
|
|
{ "icon" },
|
2024-10-02 23:02:26 +02:00
|
|
|
{ "name" },
|
2024-10-02 23:13:00 +02:00
|
|
|
{ "spacer" },
|
|
|
|
{ "users" },
|
2024-08-24 01:58:03 +02:00
|
|
|
},
|
2024-09-07 04:23:24 +02:00
|
|
|
entry = {
|
|
|
|
{ "indent" },
|
|
|
|
{ "icon" },
|
|
|
|
{ "name" },
|
|
|
|
},
|
|
|
|
button = {
|
|
|
|
{ "indent" },
|
2024-09-07 04:26:21 +02:00
|
|
|
{ "icon" },
|
2024-09-07 04:23:24 +02:00
|
|
|
{ "name" },
|
|
|
|
},
|
2024-08-24 01:58:03 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
return M
|