From 8358376a4ac69aa535941b0cb80323a1e297d929 Mon Sep 17 00:00:00 2001 From: Tristan Date: Wed, 31 Jul 2024 17:11:51 +0100 Subject: [PATCH] nixbook: fix xdph and update nixvim bindings --- home/desktop/hyprland/default.nix | 2 +- lib/nixvim.nix | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/home/desktop/hyprland/default.nix b/home/desktop/hyprland/default.nix index b005513..35e22ba 100644 --- a/home/desktop/hyprland/default.nix +++ b/home/desktop/hyprland/default.nix @@ -22,7 +22,7 @@ in { xdg.portal = { enable = true; configPackages = [pkgs.hyprland]; - extraPortals = [pkgs.xdg-desktop-portal-gtk]; + extraPortals = [pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-hyprland]; }; services.hypridle = { diff --git a/lib/nixvim.nix b/lib/nixvim.nix index 28417fb..845aaa1 100644 --- a/lib/nixvim.nix +++ b/lib/nixvim.nix @@ -40,6 +40,11 @@ action = ":Gitsigns stage_hunk"; options.desc = "git stage hunk"; } + { + key = "ggr"; + action = ":LazyGit"; + options.desc = "git restore hunk"; + } { key = "ggb"; action = ":Gitsigns blame"; @@ -81,11 +86,12 @@ keymaps = { lspBuf = { "K" = "hover"; - "a" = "code_action"; + "ca" = "code_action"; + "cr" = "rename"; "gd" = "definition"; }; diagnostic = { - "e" = "open_float"; + "ch" = "open_float"; }; }; };