From 9472a8c4c72cc40d2b1b82ed35c10f7d8cf9e5c2 Mon Sep 17 00:00:00 2001 From: Dennis Date: Fri, 7 Mar 2025 13:32:48 +0100 Subject: [PATCH] Updates keybinding and packages --- flake.lock | 12 ++++++------ home/modules/nvim/config/lua/plugins/which-key.lua | 11 ++++++++++- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index 606e2d9..11d60de 100644 --- a/flake.lock +++ b/flake.lock @@ -28,11 +28,11 @@ ] }, "locked": { - "lastModified": 1739553546, - "narHash": "sha256-L4ou3xfOr17EAe836djRoQ7auVkYOREMtiQa82wVGqU=", + "lastModified": 1741126078, + "narHash": "sha256-ng0a4cIq3c9E3iGKomlwqKzVYs2RLOzQho2U1Mc2sqU=", "owner": "LnL7", "repo": "nix-darwin", - "rev": "353846417f985e74fdc060555f17939e4472ea2c", + "rev": "c172f50b55b087f8e7801631de977461603bb976", "type": "github" }, "original": { @@ -44,11 +44,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1740865531, - "narHash": "sha256-h00vGIh/jxcGl8aWdfnVRD74KuLpyY3mZgMFMy7iKIc=", + "lastModified": 1741196730, + "narHash": "sha256-0Sj6ZKjCpQMfWnN0NURqRCQn2ob7YtXTAOTwCuz7fkA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5ef6c425980847c78a80d759abc476e941a9bf42", + "rev": "48913d8f9127ea6530a2a2f1bd4daa1b8685d8a3", "type": "github" }, "original": { diff --git a/home/modules/nvim/config/lua/plugins/which-key.lua b/home/modules/nvim/config/lua/plugins/which-key.lua index 43c0fe9..995d9ec 100644 --- a/home/modules/nvim/config/lua/plugins/which-key.lua +++ b/home/modules/nvim/config/lua/plugins/which-key.lua @@ -1,3 +1,5 @@ +local compile = require("dnsc.compile") + return { "folke/which-key.nvim", event = "VeryLazy", @@ -49,7 +51,14 @@ return { mode = "n", }, { "c", group = "code/compile", mode = "n" }, - { "cr", "lua require('dnsc.compile').run()", desc = "Run current project", mode = "n" }, + { + "cr", + function() + compile.run() + end, + desc = "Run current project", + mode = "n", + }, { "ca", "FzfLua lsp_code_actions", desc = "Code actions", mode = "n" }, { "cd", "FzfLua diagnostics_document", desc = "Show diagnostics", mode = "n" }, {