mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +00:00
move neovim to module
This commit is contained in:
parent
80209f3a4c
commit
4ccbd8b393
@ -38,6 +38,7 @@
|
||||
./nixos/home.nix
|
||||
./modules/applications/firefox.nix
|
||||
./modules/shell/fish.nix
|
||||
./modules/editor/neovim.nix
|
||||
./modules/applications/alacritty.nix
|
||||
];
|
||||
};
|
||||
|
12
modules/editor/neovim.nix
Normal file
12
modules/editor/neovim.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
neovim
|
||||
gcc # for tree-sitter
|
||||
];
|
||||
|
||||
xdg.configFile = { "nvim/init.lua".source = ../../nvim.configlink/init.lua; };
|
||||
|
||||
programs.git.extraConfig.core.editor = "nvim";
|
||||
|
||||
}
|
@ -126,4 +126,24 @@
|
||||
shellAliases = { };
|
||||
shellInit = "";
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"starship.toml".source = ../../starship/starship.toml.configlink;
|
||||
"fish/functions".source = ../../fish.configlink/functions;
|
||||
};
|
||||
}
|
||||
|
@ -34,7 +34,6 @@ in {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Applications
|
||||
neovim
|
||||
_1password-gui
|
||||
discord
|
||||
# neomutt
|
||||
@ -46,8 +45,6 @@ in {
|
||||
|
||||
# Utilities
|
||||
unzip
|
||||
gcc # for tree-sitter
|
||||
starship
|
||||
rsync
|
||||
fzf
|
||||
ripgrep
|
||||
@ -80,26 +77,8 @@ in {
|
||||
NOTES_PATH = "${notes_path}";
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
# Other configs
|
||||
xdg.configFile = {
|
||||
"starship.toml".source = ../starship/starship.toml.configlink;
|
||||
"nvim/init.lua".source = ../nvim.configlink/init.lua;
|
||||
"fish/functions".source = ../fish.configlink/functions;
|
||||
"awesome/rc.lua".source = ./awesomerc.lua;
|
||||
"qtile/config.py".source = ./qtile.py;
|
||||
"direnvrc".text = "source $HOME/.nix-profile/share/nix-direnv/direnvrc";
|
||||
@ -121,7 +100,6 @@ in {
|
||||
userName = "${name}";
|
||||
userEmail = "7386960+nmasur@users.noreply.github.com";
|
||||
extraConfig = {
|
||||
core = { editor = "nvim"; };
|
||||
pager = { branch = "false"; };
|
||||
safe = { directory = "${dotfiles}"; };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user