From 693695f92ba87277d170ebd8a6ac19805e457b39 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 10 Dec 2025 20:12:50 +0530 Subject: Adding configuration for nixvim --- modules/tools/default.nix | 1 + modules/tools/nixvim/default.nix | 53 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 modules/tools/nixvim/default.nix (limited to 'modules/tools') diff --git a/modules/tools/default.nix b/modules/tools/default.nix index eccc063..8a207b0 100644 --- a/modules/tools/default.nix +++ b/modules/tools/default.nix @@ -16,6 +16,7 @@ ./libreoffice ./lsd ./neofetch + ./nixvim ./neovim ./nnn ./nvtop diff --git a/modules/tools/nixvim/default.nix b/modules/tools/nixvim/default.nix new file mode 100644 index 0000000..1bde14e --- /dev/null +++ b/modules/tools/nixvim/default.nix @@ -0,0 +1,53 @@ +{ pkgs, config, lib, ... }: + +let + nixvim = import (builtins.fetchGit { + url = "https://github.com/nix-community/nixvim"; + }); +in { + imports = [ + nixvim.homeModules.nixvim + ]; + + options.tools.nixvim = { + enable = lib.mkEnableOption "Enables nixvim."; + }; + + config = lib.mkIf config.tools.nixvim.enable + { + programs.nixvim = { + enable = true; + colorschemes.base16 = { + enable = true; + colorscheme = with config.scheme.withHashtag; { + base00 = base00; + base01 = base01; + base02 = base02; + base03 = base03; + base04 = base04; + base05 = base05; + base06 = base06; + base07 = base07; + base08 = base08; + base09 = base09; + base0A = base0A; + base0B = base0B; + base0C = base0C; + base0D = base0D; + base0E = base0E; + base0F = base0F; + }; + }; + opts = { + number = true; + relativenumber = true; + shiftwidth = 3; + }; + plugins = { + lightline = { + enable = true; + }; + }; + }; + }; +} -- cgit v1.2.3