codemp-nvim/lua/codemp/neo-tree/init.lua

60 lines
806 B
Lua
Raw Permalink Normal View History

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" },
},
spacer = {
{ "indent" },
},
root = {
{ "icon" },
{ "name" },
},
workspace = {
{ "indent" },
{ "icon" },
{ "name" },
},
user = {
{ "indent" },
{ "icon" },
{ "name" },
{ "buffer" },
},
buffer = {
{ "indent" },
{ "icon" },
{ "name" },
{ "spacer" },
{ "users" },
},
entry = {
{ "indent" },
{ "icon" },
{ "name" },
},
button = {
{ "indent" },
2024-09-07 04:26:21 +02:00
{ "icon" },
{ "name" },
},
},
}
return M