mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-25 08:54:50 +01:00
58 lines
789 B
Lua
58 lines
789 B
Lua
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 = {
|
|
title = {
|
|
{ "name" },
|
|
},
|
|
spacer = {
|
|
{ "indent" },
|
|
},
|
|
root = {
|
|
{ "icon" },
|
|
{ "name" },
|
|
},
|
|
workspace = {
|
|
{ "indent" },
|
|
{ "icon" },
|
|
{ "name" },
|
|
},
|
|
user = {
|
|
{ "indent" },
|
|
{ "icon" },
|
|
{ "name" },
|
|
},
|
|
buffer = {
|
|
{ "indent" },
|
|
{ "icon" },
|
|
{ "name" },
|
|
{ "spacer" },
|
|
{ "users" },
|
|
},
|
|
entry = {
|
|
{ "indent" },
|
|
{ "icon" },
|
|
{ "name" },
|
|
},
|
|
button = {
|
|
{ "indent" },
|
|
{ "icon" },
|
|
{ "name" },
|
|
},
|
|
},
|
|
}
|
|
|
|
return M
|