mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 04:52:56 +00:00
41 lines
925 B
Nix
41 lines
925 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
home.packages = with pkgs; [
|
|
neovim
|
|
gcc # for tree-sitter
|
|
shfmt # used everywhere
|
|
shellcheck # used everywhere
|
|
];
|
|
|
|
xdg.configFile = {
|
|
"nvim/init.lua".source = ./init.lua;
|
|
"nvim/lua" = {
|
|
source = ./lua;
|
|
recursive = true; # Allows adding more files
|
|
};
|
|
"nvim/lua/packer/colors.lua".text = config.gui.colorscheme.neovimConfig;
|
|
};
|
|
|
|
programs.git.extraConfig.core.editor = "nvim";
|
|
home.sessionVariables = {
|
|
EDITOR = "nvim";
|
|
MANPAGER = "nvim +Man!";
|
|
};
|
|
programs.fish = {
|
|
shellAliases = { vim = "nvim"; };
|
|
shellAbbrs = {
|
|
v = lib.mkForce "nvim";
|
|
vl = lib.mkForce "nvim -c 'normal! `0'";
|
|
vll = "nvim -c 'Telescope oldfiles'";
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
# Used for icons in Vim
|
|
fonts.fonts = with pkgs; [ nerdfonts ];
|
|
|
|
}
|