This commit is contained in:
2025-08-05 14:40:28 +02:00
parent ba3fe72ecd
commit 5a36ba87fd
8 changed files with 81 additions and 2 deletions

View File

@@ -31,6 +31,10 @@
url = "git+ssh://git@github.com/cschmatzler/nixos-config-secrets.git"; url = "git+ssh://git@github.com/cschmatzler/nixos-config-secrets.git";
flake = false; flake = false;
}; };
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
{ {

View File

@@ -0,0 +1,22 @@
{ inputs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
./options.nix
./plugins
];
home.shellAliases.v = "nvim";
programs.nixvim = {
enable = true;
defaultEditor = true;
nixpkgs.useGlobalPackages = true;
viAlias = true;
vimAlias = true;
luaLoader.enable = true;
};
}

View File

@@ -0,0 +1,5 @@
{
programs.nixvim = {
colorschemes.catppuccin.enable = true;
};
}

View File

@@ -0,0 +1,5 @@
{
imports = [
./oil.nix
];
}

View File

@@ -0,0 +1,40 @@
{
programs.nixvim.plugins.oil = {
enable = true;
autoLoad = true;
settings = {
columns = [
"icon"
];
keymaps = {
"<C-r>" = "actions.refresh";
"<leader>qq" = "actions.close";
};
skip_confirm_for_simple_edits = true;
constrain_cursor = "editable";
default_file_explorer = true;
view_options = {
show_hidden = true;
};
win_options = {
concealcursor = "ncv";
conceallevel = 3;
cursorcolumn = false;
foldcolumn = "0";
list = false;
signcolumn = "no";
spell = false;
wrap = false;
};
};
};
programs.nixvim.keymaps = [
{
mode = "n";
key = "<leader>e";
action = ":Oil<CR>";
options.desc = "File browser";
}
];
}

View File

@@ -4,6 +4,9 @@
enableFishIntegration = true; enableFishIntegration = true;
settings = { settings = {
theme = "catppuccin-latte"; theme = "catppuccin-latte";
default_layout = "compact";
show_startup_tips = false;
show_release_notes = false;
}; };
}; };
} }

View File

@@ -10,11 +10,11 @@ with pkgs;
git git
gnupg gnupg
jjui jjui
nerd-fonts.fira-code
jq jq
killall killall
libfido2 libfido2
neovim neovim
nerd-fonts.iosevka
nixfmt nixfmt
nodejs_24 nodejs_24
opencode opencode

View File

@@ -13,7 +13,7 @@
window-padding-x = 8; window-padding-x = 8;
window-padding-y = 2; window-padding-y = 2;
window-padding-balance = true; window-padding-balance = true;
font-family = "FiraCode Nerd Font"; font-family = "Iosevka Nerd Font";
font-size = 15.5; font-size = 15.5;
font-feature = [ font-feature = [
"-calt" "-calt"