feat: basic nvim setup and other partially working stuff

This commit is contained in:
Pihkaal
2024-01-26 16:49:00 +01:00
parent ef41377558
commit 151360d5e7
9 changed files with 121 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
import { useTerminal } from "~/context/TerminalContext";
import { TerminalRenderer } from "~/utils/terminal/renderer";
export const NvimTree = () => {
const { cols: width, rows: height } = useTerminal();
const canvas = new TerminalRenderer(width * 0.15, height - 2);
canvas.write(0, 0, "ijirjginrgi");
return <p>{canvas.render()}</p>;
};