Files
nixos-config/modules/programs/nixvim/nixvim.nix
T
2026-09-25 20:32:18 +02:00

36 lines
661 B
Nix

{ inputs, ... }: {
flake-file.inputs = {
nixvim.url = "github:nix-community/nixvim/nixos-26.05";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
};
flake.modules.homeManager.nixvim = {
imports = [
inputs.nixvim.homeModules.nixvim
];
programs.nixvim = {
enable = true;
opts = {
number = true;
relativenumber = true;
shiftwidth = 2;
tabstop = 2;
scrolloff = 20;
cursorline = true;
clipboard = "unnamedplus";
};
keymaps = [
{
mode = [ "" "i" "t" ];
key = "fj";
action = "<ESC>";
}
];
};
home.sessionVariables.EDITOR = "nvim";
};
}