From 7a5505d39363634816377cffd17a8107d6a4505d Mon Sep 17 00:00:00 2001 From: oddlama Date: Tue, 30 Jan 2024 18:08:22 +0100 Subject: [PATCH] fix: alpha nixvim update --- flake.lock | 72 +++++++++++++++++------------------ users/myuser/neovim/alpha.nix | 48 ++++++++++++++++++++--- 2 files changed, 78 insertions(+), 42 deletions(-) diff --git a/flake.lock b/flake.lock index 1a7a827..5b38986 100644 --- a/flake.lock +++ b/flake.lock @@ -352,11 +352,11 @@ ] }, "locked": { - "lastModified": 1705890365, - "narHash": "sha256-MObB+fipA/2Ai3uMuNouxcwz0cqvELPpJ+hfnhSaUeA=", + "lastModified": 1706491084, + "narHash": "sha256-eaEv+orTmr2arXpoE4aFZQMVPOYXCBEbLgK22kOtkhs=", "owner": "nix-community", "repo": "disko", - "rev": "9fcdf3375e01e2938a49df103af9fd21bd0f89d9", + "rev": "f67ba6552845ea5d7f596a24d57c33a8a9dc8de9", "type": "github" }, "original": { @@ -724,11 +724,11 @@ ] }, "locked": { - "lastModified": 1705879479, - "narHash": "sha256-ZIohbyly1KOe+8I3gdyNKgVN/oifKdmeI0DzMfytbtg=", + "lastModified": 1706473109, + "narHash": "sha256-iyuAvpKTsq2u23Cr07RcV5XlfKExrG8gRpF75hf1uVc=", "owner": "nix-community", "repo": "home-manager", - "rev": "2d47379ad591bcb14ca95a90b6964b8305f6c913", + "rev": "d634c3abafa454551f2083b054cd95c3f287be61", "type": "github" }, "original": { @@ -745,11 +745,11 @@ ] }, "locked": { - "lastModified": 1705879479, - "narHash": "sha256-ZIohbyly1KOe+8I3gdyNKgVN/oifKdmeI0DzMfytbtg=", + "lastModified": 1706306660, + "narHash": "sha256-lZvgkHtVeduGByPb0Tz9LpAi4olfkEm8XPgv0o7GRsk=", "owner": "nix-community", "repo": "home-manager", - "rev": "2d47379ad591bcb14ca95a90b6964b8305f6c913", + "rev": "b2f56952074cb46e93902ecaabfb04dd93733434", "type": "github" }, "original": { @@ -797,11 +797,11 @@ "spectrum": "spectrum" }, "locked": { - "lastModified": 1705802752, - "narHash": "sha256-0EY+M5vnXcm/0bQQo9Yu2k+NF69qoLdpa6Vb2ARa1Zw=", + "lastModified": 1706214321, + "narHash": "sha256-42FZWeJQNYgz0ZkclMzShuvjT9TvJNRN78Iu3SEyD4M=", "owner": "astro", "repo": "microvm.nix", - "rev": "f07dd64526ee203d25329c517eec3b697860fa6b", + "rev": "186b8bf6dbacc1ab55fe8ac8d5a2bbf76a1a70e1", "type": "github" }, "original": { @@ -838,11 +838,11 @@ ] }, "locked": { - "lastModified": 1705806513, - "narHash": "sha256-FcOmNjhHFfPz2udZbRpZ1sfyhVMr+C2O8kOxPj+HDDk=", + "lastModified": 1706411424, + "narHash": "sha256-BzziJYucEZvdCE985vjPoo3ztWcmUiSQ1wJ2CoT6jCc=", "owner": "Mic92", "repo": "nix-index-database", - "rev": "f8e04fbcebcc24cebc91989981bd45f69b963ed7", + "rev": "c782f2a4f6fc94311ab5ef31df2f1149a1856181", "type": "github" }, "original": { @@ -900,11 +900,11 @@ ] }, "locked": { - "lastModified": 1705400161, - "narHash": "sha256-0MFaNIwwpVWB1N9m7cfHAM2pSVtYESQ7tlHxnDTOhM4=", + "lastModified": 1706085261, + "narHash": "sha256-7PgpHRHyShINcqgevPP1fJ6N8kM5ZSOJnk3QZBrOCQ0=", "owner": "nix-community", "repo": "nixos-generators", - "rev": "521fb4cdd8a2e1a00d1adf0fea7135d1faf04234", + "rev": "896f6589db5b25023b812bbb6c1f5d3a499b1132", "type": "github" }, "original": { @@ -915,11 +915,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1705312285, - "narHash": "sha256-rd+dY+v61Y8w3u9bukO/hB55Xl4wXv4/yC8rCGVnK5U=", + "lastModified": 1706182238, + "narHash": "sha256-Ti7CerGydU7xyrP/ow85lHsOpf+XMx98kQnPoQCSi1g=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "bee2202bec57e521e3bd8acd526884b9767d7fa0", + "rev": "f84eaffc35d1a655e84749228cde19922fcf55f1", "type": "github" }, "original": { @@ -951,11 +951,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1705856552, - "narHash": "sha256-JXfnuEf5Yd6bhMs/uvM67/joxYKoysyE3M2k6T3eWbg=", + "lastModified": 1706371002, + "narHash": "sha256-dwuorKimqSYgyu8Cw6ncKhyQjUDOyuXoxDTVmAXq88s=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "612f97239e2cc474c13c9dafa0df378058c5ad8d", + "rev": "c002c6aa977ad22c60398daaa9be52f2203d0006", "type": "github" }, "original": { @@ -1076,11 +1076,11 @@ ] }, "locked": { - "lastModified": 1705927744, - "narHash": "sha256-ESHLUjPRApElOJuyXidapwredduuUmJlJ7EAmlFePSY=", + "lastModified": 1706539542, + "narHash": "sha256-Zbd9/0iTDNwf6ePvKkISvSMK6S7kmfsPzyG5f57sVA8=", "owner": "nix-community", "repo": "nixvim", - "rev": "86d6ce5029c99362c96ccead428b366f81d5b8f0", + "rev": "37d124e94603f821b56072794c4800ad10252fd7", "type": "github" }, "original": { @@ -1186,11 +1186,11 @@ "nixpkgs-stable": "nixpkgs-stable_4" }, "locked": { - "lastModified": 1705757126, - "narHash": "sha256-Eksr+n4Q8EYZKAN0Scef5JK4H6FcHc+TKNHb95CWm+c=", + "lastModified": 1706424699, + "narHash": "sha256-Q3RBuOpZNH2eFA1e+IHgZLAOqDD9SKhJ/sszrL8bQD4=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "f56597d53fd174f796b5a7d3ee0b494f9e2285cc", + "rev": "7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf", "type": "github" }, "original": { @@ -1305,11 +1305,11 @@ ] }, "locked": { - "lastModified": 1705668784, - "narHash": "sha256-U/1Qol9H5nb8FtWSXSiHY8T4Y7TOIo7NHuqe4uuiBec=", + "lastModified": 1706466685, + "narHash": "sha256-R6D+3wBQvn7sCZLbM3WrHbKtVNSflkruGQ/5bHfslhg=", "owner": "danth", "repo": "stylix", - "rev": "a9e3ce064a778b386fb88fb152c02ae95aa2cbd2", + "rev": "7a7c90015de7454060e103e94bb4e6010b5aa062", "type": "github" }, "original": { @@ -1462,11 +1462,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1705487953, - "narHash": "sha256-6oh1H7/74v57m3AtK8jQLvN9LtKqyeT862krjJasOJs=", + "lastModified": 1706214060, + "narHash": "sha256-P2AyxPfn8+nfFB3xKUikd6fTN8jVl5/ZLV1gsz5eiT0=", "owner": "Toqozz", "repo": "wired-notify", - "rev": "fe0f02af93b09e5fe689c948a557e466b99d9a58", + "rev": "d65f227779061299842b4e1891954c4843ee2750", "type": "github" }, "original": { diff --git a/users/myuser/neovim/alpha.nix b/users/myuser/neovim/alpha.nix index 9d84326..5ffd821 100644 --- a/users/myuser/neovim/alpha.nix +++ b/users/myuser/neovim/alpha.nix @@ -29,14 +29,50 @@ opts.spacing = 1; val = [ { - command = ":enew"; - desc = " New file"; - shortcut = "e"; + type = "button"; + val = " New file"; + on_press.__raw = "function() vim.cmd[[enew]] end"; + opts = { + shortcut = "e"; + position = "center"; + hl_shortcut = "keyword"; + align_shortcut = "right"; + width = 50; + cursor = 3; + keymap = [ + "n" + "e" + ":enew" + { + noremap = true; + silent = true; + nowait = true; + } + ]; + }; } { - command = ":qa"; - desc = "󰅙 Quit Neovim"; - shortcut = "q"; + type = "button"; + val = "󰅙 Quit Neovim"; + on_press.__raw = "function() vim.cmd[[qa]] end"; + opts = { + shortcut = "q"; + position = "center"; + hl_shortcut = "keyword"; + align_shortcut = "right"; + width = 50; + cursor = 3; + keymap = [ + "n" + "q" + ":qa" + { + noremap = true; + silent = true; + nowait = true; + } + ]; + }; } ]; }