feat!: add neovim

This commit is contained in:
2025-01-22 16:48:44 -08:00
parent 7d0ca2a7bd
commit c426ceceb8
12 changed files with 304 additions and 55 deletions

View File

@@ -1,53 +0,0 @@
{ pkgs, ... }:
{
enable = true;
languages.language = [
{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.nixfmt}/bin/nixfmt";
}
{
name = "typescript";
auto-format = true;
formatter = {
command = "${pkgs.nodePackages_latest.prettier}/bin/prettier";
args = [ "--parser" "typescript" ];
};
}
{
name = "tsx";
auto-format = true;
formatter = {
command = "${pkgs.nodePackages_latest.prettier}/bin/prettier";
args = [ "--parser" "typescript" ];
};
}
];
settings = {
theme = "rose_pine";
editor = {
true-color = true;
line-number = "relative";
lsp.display-messages = true;
cursor-shape = {
insert = "block";
normal = "block";
};
};
keys.normal = {
space.q = ":q";
w = [ "move_next_word_start" "move_char_right" "collapse_selection" ];
b = [ "move_prev_word_start" "collapse_selection" ];
i = [ "insert_mode" "collapse_selection" ];
a = [ "append_mode" "collapse_selection" ];
};
};
themes = {
rose_pine = {
inherits = "rose_pine";
"ui.background" = "transparent";
};
};
}

View File

@@ -8,11 +8,9 @@
git = import ./git.nix;
zsh = import ./zsh.nix;
tmux = import ./tmux.nix { inherit pkgs; };
helix = import ./helix.nix { inherit pkgs; };
};
home.packages = with pkgs; [
nodePackages_latest.typescript-language-server
nodejs_22
pnpm
gh