diff --git a/src/components/Kitty.tsx b/src/components/Kitty.tsx
index 705f28a..407ab2b 100644
--- a/src/components/Kitty.tsx
+++ b/src/components/Kitty.tsx
@@ -85,7 +85,7 @@ export const Kitty = (props: {
ref={container}
>
{props.children}
diff --git a/src/components/Nvim/NvimEditor.tsx b/src/components/Nvim/NvimEditor.tsx
index 41516f7..79be949 100644
--- a/src/components/Nvim/NvimEditor.tsx
+++ b/src/components/Nvim/NvimEditor.tsx
@@ -14,5 +14,5 @@ export const NvimEditor = (props: { source: string | undefined }) => {
});
}, [props.source]);
- return
{loading ? "Loading..." : data}
;
+ return
{loading ? "Loading..." : data}
;
};
diff --git a/src/components/Nvim/NvimStatusBar.tsx b/src/components/Nvim/NvimStatusBar.tsx
index d47a8ba..deb482d 100644
--- a/src/components/Nvim/NvimStatusBar.tsx
+++ b/src/components/Nvim/NvimStatusBar.tsx
@@ -6,7 +6,7 @@ export const NvimStatusBar = (props: {
fileIcon?: string;
fileName: string;
}) => (
-
+
{` ${props.label} `}
diff --git a/src/components/Nvim/NvimTree/index.tsx b/src/components/Nvim/NvimTree/index.tsx
index 23bb024..01c6507 100644
--- a/src/components/Nvim/NvimTree/index.tsx
+++ b/src/components/Nvim/NvimTree/index.tsx
@@ -10,7 +10,6 @@ import {
import { type Nvim } from "..";
import { NvimTreeDirectory } from "./NvimTreeDirectory";
import { NvimTreeFile } from "./NvimTreeFile";
-import { promiseHooks } from "v8";
const sortFiles = (files: Array
) =>
files
diff --git a/src/components/Nvim/index.tsx b/src/components/Nvim/index.tsx
index 164f09d..acda147 100644
--- a/src/components/Nvim/index.tsx
+++ b/src/components/Nvim/index.tsx
@@ -1,15 +1,19 @@
import { useKitty } from "~/hooks/useKitty";
-import { CHAR_HEIGHT } from "../Kitty";
+import { CHAR_HEIGHT, CHAR_WIDTH } from "../Kitty";
import { NvimEditor } from "./NvimEditor";
import { NvimInput } from "./NvimInput";
import { NvimStatusBar } from "./NvimStatusBar";
import { NvimTree } from "./NvimTree";
import { useState } from "react";
-import { File } from "~/utils/types";
+import { File, InnerKittyProps } from "~/utils/types";
export const Nvim = (_props: {}) => {
const kitty = useKitty();
+ return kitty && ;
+};
+
+const InnerNvimTree = (props: InnerKittyProps) => {
const [activeFile, setActiveFile] = useState<{
name: string;
url: string;
@@ -32,31 +36,36 @@ export const Nvim = (_props: {}) => {
- {kitty && (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
- >
- )}
+
+
+
+
+
+
+
+
+
+
+
+
);
};