From 0f748ec335daea9ff76c3f9c619db2f2707a87c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nina=20Chl=C3=B3e=20Kassandra=20Rei=C3=9F?= Date: Tue, 2 Jun 2026 21:05:24 +0200 Subject: [PATCH] Add neovim to configuration --- terminal-environment/config.nix | 2 +- terminal-environment/editor.nix | 25 ++++++++++++++++++++----- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/terminal-environment/config.nix b/terminal-environment/config.nix index 438448b..ae43ea4 100644 --- a/terminal-environment/config.nix +++ b/terminal-environment/config.nix @@ -10,7 +10,6 @@ in ]; home.packages = with pkgs; [ - git astyle hyfetch distrobox @@ -40,6 +39,7 @@ in push = { autoSetupRemote = true; }; + init.defaultBranch = "main"; }; }; diff --git a/terminal-environment/editor.nix b/terminal-environment/editor.nix index fe7282b..5e5c1a1 100644 --- a/terminal-environment/editor.nix +++ b/terminal-environment/editor.nix @@ -1,12 +1,16 @@ { config, pkgs, ... }: let + neovim_configuration = pkgs.fetchgit { + url = "https://git.nichkara.eu/nichkara/nvim"; + rev = "ba38abd4c782efc592a97b6da453492eae37f8d0"; + sha256 = "sha256-E00IKMwpS6WjkWnpxpg0NxWYZEhbNlS+0vs0Nv5N4eY="; + }; + profile = import ../profile.nix; in { home.packages = with pkgs; [ - vim - neovim neovim-qt fzf @@ -18,10 +22,21 @@ in haskellPackages.lsp python3 - python3Packages.pynvim - nodejs - ruby ]; + + programs.neovim = { + enable = true; + defaultEditor = true; + withNodeJs = true; + withPerl = true; + withPython3 = true; + withRuby = true; + waylandSupport = true; + }; + + xdg.configFile."nvim/nvim" = { + source = neovim_configuration; + }; }