Compare commits

..

2 commits

Author SHA1 Message Date
23ccfed77e
add a basic nixvim config 2024-11-20 12:12:15 -05:00
0122fc11c6
fix environment variables 2024-11-20 12:10:28 -05:00
3 changed files with 15 additions and 7 deletions

View file

@ -42,7 +42,7 @@
./nixos/catppuccin.nix ./nixos/catppuccin.nix
./nixos/configuration.nix ./nixos/configuration.nix
./nixos/development.nix ./nixos/development.nix
#./nixos/environment.nix ./nixos/environment.nix
./nixos/gaming.nix ./nixos/gaming.nix
./nixos/git.nix ./nixos/git.nix
./nixos/gui-pkgs.nix ./nixos/gui-pkgs.nix

View file

@ -1,10 +1,7 @@
{ lib, ... }: { { lib, ... }: {
environment.variables = { environment.variables = {
EDITOR = lib.mkDefault (if builtins.hasAttr "SSH_CONNECTION" EDITOR = "nvim";
builtins.currentSystemEnvironment then VISUAL = "code";
"nvim"
else
"code");
# XDG settings # XDG settings
XDG_CONFIG_HOME = lib.mkDefault "$HOME/.config"; XDG_CONFIG_HOME = lib.mkDefault "$HOME/.config";

View file

@ -1,7 +1,18 @@
{ { pkgs, ... }: {
programs.nixvim = { programs.nixvim = {
extraPackages = with pkgs; [ fd ];
enable = true; enable = true;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
colorschemes.catppuccin.enable = true;
plugins = {
conform-nvim = {
enable = true;
};
treesitter.enable = true;
cmp.enable = true;
cmp-nvim-lsp.enable = true;
lsp.enable = true;
};
}; };
} }