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": { "locked": {
"lastModified": 1739553546, "lastModified": 1741126078,
"narHash": "sha256-L4ou3xfOr17EAe836djRoQ7auVkYOREMtiQa82wVGqU=", "narHash": "sha256-ng0a4cIq3c9E3iGKomlwqKzVYs2RLOzQho2U1Mc2sqU=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "353846417f985e74fdc060555f17939e4472ea2c", "rev": "c172f50b55b087f8e7801631de977461603bb976",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -44,11 +44,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1740865531, "lastModified": 1741196730,
"narHash": "sha256-h00vGIh/jxcGl8aWdfnVRD74KuLpyY3mZgMFMy7iKIc=", "narHash": "sha256-0Sj6ZKjCpQMfWnN0NURqRCQn2ob7YtXTAOTwCuz7fkA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5ef6c425980847c78a80d759abc476e941a9bf42", "rev": "48913d8f9127ea6530a2a2f1bd4daa1b8685d8a3",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

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