feat(nvim): display active file in status bar and use url in editor

This commit is contained in:
2024-06-01 00:26:23 +02:00
parent 608048d974
commit 70464e8043
6 changed files with 72 additions and 62 deletions

View File

@@ -1,17 +1,22 @@
import { ICONS, getIcon } from "~/utils/icons";
export const NvimStatusBar = (props: {
label: string;
labelColor: string;
fileIcon?: string;
fileName: string;
}) => (
<div className="bg-[#29293c]">
<span className="text-black" style={{ background: props.labelColor }}>
<span className="text-[#272332]" style={{ background: props.labelColor }}>
{` ${props.label} `}
</span>
<span className="text-[#474353]" style={{ background: props.labelColor }}>
{"\ue0ba"}
</span>
<span className="bg-[#474353] text-[#373040]">{"\ue0ba"}</span>
<span className="bg-[#373040] text-white">{` ${props.fileName} `}</span>
<span className="bg-[#373040]">{` ${getIcon(props.fileIcon).char}${
props.fileName
} `}</span>
<span className="bg-[#373040] text-[#29293c]">{"\ue0ba"}</span>
</div>
);