Updates keybinding and packages

This commit is contained in:
Dennis Schoepf 2025-03-07 13:32:48 +01:00
parent 59d0b7c05b
commit 9472a8c4c7
2 changed files with 16 additions and 7 deletions

12
flake.lock generated
View file

@ -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": {

View file

@ -1,3 +1,5 @@
local compile = require("dnsc.compile")
return {
"folke/which-key.nvim",
event = "VeryLazy",
@ -49,7 +51,14 @@ return {
mode = "n",
},
{ "<leader>c", group = "code/compile", mode = "n" },
{ "<leader>cr", "<cmd>lua require('dnsc.compile').run()<cr>", desc = "Run current project", mode = "n" },
{
"<leader>cr",
function()
compile.run()
end,
desc = "Run current project",
mode = "n",
},
{ "<leader>ca", "<cmd>FzfLua lsp_code_actions<cr>", desc = "Code actions", mode = "n" },
{ "<leader>cd", "<cmd>FzfLua diagnostics_document<cr>", desc = "Show diagnostics", mode = "n" },
{