feat(nvim): implement basic layout

This commit is contained in:
Pihkaal
2024-05-30 15:44:49 +02:00
parent e21d337d53
commit 3832a7ca52
9 changed files with 66 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ export const Kitty = (props: {
setWidth(`${width}px`);
setHeight(`${height}px`);
setContext((ctx) => ({ ...(ctx ?? { active: false }), rows, cols }));
setContext(ctx => ({ ...(ctx ?? { active: false }), rows, cols }));
}, []);
useEffect(() => {
@@ -76,9 +76,9 @@ export const Kitty = (props: {
lineHeight: `${CHAR_HEIGHT}px`,
...(activeKitty === id
? {
borderColor: "#cdd6f4",
animationDuration: "200ms",
}
borderColor: "#cdd6f4",
animationDuration: "200ms",
}
: {}),
}}
ref={container}