project.nvim
project.nvim copied to clipboard
feat: name/path transforms using custom user functions
Examples of what it might look like after:
Config:
lvim.builtin.project.transform_path = function(path)
return vim.fn.fnamemodify(path, ":~")
end
lvim.builtin.project.transform_name = function(path)
return "[client] " .. vim.fn.fnamemodify(path, ":t")
end
Ideally, "client" would match on some base known path (e.g. a base project name or client name if there are nested projects under that), and the name would point to a submodule for that project. Sometimes I need to switch from the base project CWD to the submodule, for various reasons, and it would be nice to have that clear separation, and to reduce the noise potentially shown in the path.
[client A] submodule X ~/projects/client A/some/path/to/submodule X
[client B] submodule X ~/projects/client B/some/path/to/submodule X
Closes #124