feat(nvim): improve tree and file switching, and implements links
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user