feat(nvim): improve tree and file switching, and implements links

This commit is contained in:
2024-05-31 22:56:08 +02:00
parent c0b4cc2bb9
commit 608048d974
12 changed files with 361 additions and 309 deletions

View File

@@ -9,5 +9,36 @@ export type InnerKittyProps<T extends (...args: any[]) => any> = Prettify<
export type RootManifest = {
files: Array<string>;
projects: Array<string>;
projects: Array<{
name: string;
icon: string;
}>;
links: Array<{
name: string;
url: string;
icon: string;
}>;
};
export type Icon = {
char: string;
color: string;
};
export type File = {
name: string;
} & (
| {
type: "link";
url: string;
icon: string;
}
| { type: "file"; repo: string; fileName: string; icon?: string }
);
export type Directory = {
name: string;
type: "directory";
files: Array<File>;
opened: boolean;
};