feat: basic nvim setup and other partially working stuff
This commit is contained in:
11
src/components/Nvim/NvimTree.tsx
Normal file
11
src/components/Nvim/NvimTree.tsx
Normal 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>;
|
||||
};
|
||||
Reference in New Issue
Block a user