diff --git a/home/desktop/hyprland/default.nix b/home/desktop/hyprland/default.nix index 2d90459..e60bcbd 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 ce6025f..3698dad 100644 --- a/lib/nixvim.nix +++ b/lib/nixvim.nix @@ -20,6 +20,7 @@ { key = ""; action = ''"+y''; + options.desc = "copy to clipboard"; } { key = "gl"; @@ -29,17 +30,30 @@ key = "gh"; action = "g0"; } + { + key = "q"; + action = ":bd"; + options.desc = "close buffer"; + } { key = "ggs"; action = ":Gitsigns stage_hunk"; + options.desc = "git stage hunk"; + } + { + key = "ggr"; + action = ":LazyGit"; + options.desc = "git restore hunk"; } { key = "ggb"; action = ":Gitsigns blame"; + options.desc = "show git blame"; } { key = "ggg"; action = ":LazyGit"; + options.desc = "open lazy git"; } ]; @@ -77,6 +91,12 @@ }; diagnostic = { "e" = "open_float"; + "ca" = "code_action"; + "cr" = "rename"; + "gd" = "definition"; + }; + diagnostic = { + "ch" = "open_float"; }; }; }; @@ -96,6 +116,7 @@ enable = true; enableTelescope = true; }; + lazygit.enable = true; which-key.enable = true; toggleterm = { @@ -107,5 +128,15 @@ enable = true; extensions.dap-ui.enable = true; }; + harpoon = { + enable = true; + keymaps = { + addFile = "ha"; + toggleQuickMenu = "hf"; + navNext = "n"; + }; + }; + + vim-css-color.enable = true; }; }