This commit is contained in:
Hadi 2024-04-20 00:16:05 +02:00
parent 637accfc1c
commit 950e1cfcf2
7 changed files with 35 additions and 2 deletions

1
home/nvim/comment.nix Normal file
View File

@ -0,0 +1 @@
{ programs.nixvim.plugins.comment = { enable = true; }; }

View File

@ -19,6 +19,9 @@
./whichkey.nix ./whichkey.nix
./alpha.nix ./alpha.nix
./keymaps.nix ./keymaps.nix
./comment.nix
./oil.nix
./trouble.nix
]; ];
programs.nixvim = { programs.nixvim = {

View File

@ -34,6 +34,33 @@
action = "<cmd>ObsidianPasteImg<cr>"; action = "<cmd>ObsidianPasteImg<cr>";
} }
{
key = "<leader>E";
action = "<cmd>Oil<cr>";
}
{
key = "<leader>t";
action = "<cmd>TroubleToggle<cr>";
}
{
key = "<C-h>";
action = "<C-w>h";
}
{
key = "<C-j>";
action = "<C-w>j";
}
{
key = "<C-k>";
action = "<C-w>k";
}
{
key = "<C-l>";
action = "<C-w>l";
}
# Terminal Mappings # Terminal Mappings
{ {
mode = "t"; mode = "t";

1
home/nvim/oil.nix Normal file
View File

@ -0,0 +1 @@
{ programs.nixvim.plugins.oil = { enable = true; }; }

1
home/nvim/trouble.nix Normal file
View File

@ -0,0 +1 @@
{ programs.nixvim.plugins.trouble = { enable = true; }; }

View File

@ -48,7 +48,7 @@ let
nextcloud-watch & nextcloud-watch &
battery-notif & battery-notif &
waybar & ${pkgs.waybar}/bin/waybar &
''; '';
in { in {

View File

@ -40,7 +40,7 @@
dates = "04:00"; dates = "04:00";
flake = "${config.users.users.hadi.home}/.config/nixos"; # CHANGEME flake = "${config.users.users.hadi.home}/.config/nixos"; # CHANGEME
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ]; flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
allowReboot = true; allowReboot = false;
}; };
############## ##############