dotfiles/modules/editor/neovim/default.nix
2022-05-07 16:54:47 -04:00

32 lines
683 B
Nix

{ config, pkgs, lib, ... }: {
home-manager.users.${config.user} = {
home.packages = with pkgs; [
neovim
gcc # for tree-sitter
];
xdg.configFile = {
"nvim/init.lua".text = lib.mkOrder 100 ''
${builtins.readFile ./init.lua}
'';
};
programs.git.extraConfig.core.editor = "nvim";
home.sessionVariables = { EDITOR = "nvim"; };
programs.fish = {
shellAliases = { vim = "nvim"; };
shellAbbrs = {
vll = "vim -c 'Telescope oldfiles'";
vimrc = "vim ${builtins.toString ../../.}/nvim.configlink/init.lua";
};
};
};
# Used for icons in Vim
fonts.fonts = with pkgs; [ nerdfonts ];
}