diff --git a/modules/utility/binds/which-key.nix b/modules/utility/binds/which-key.nix index ef9fdf6..ce65134 100644 --- a/modules/utility/binds/which-key.nix +++ b/modules/utility/binds/which-key.nix @@ -15,6 +15,35 @@ in { config = mkIf (cfg.enable) { vim.startPlugins = ["which-key"]; - vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere ''local wk = require("which-key").setup {}''; + vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere '' + require("which-key").setup {} + + local wk = require("which-key") + wk.register({ + ["b"] = { name = "+Buffer" }, + ["c"] = { name = "+CodeAction" }, + ["b"] = { name = "+Buffer" }, + ["f"] = { name = "+Telescope" }, + ["m"] = { name = "+Minimap" }, + ["o"] = { name = "+Notes" }, + ["t"] = { name = "+NvimTree" }, + ["x"] = { name = "+Trouble" }, -- TODO: move all trouble binds to the same parent group + ["l"] = { name = "+Trouble" }, + + -- Buffer + ["bm"] = { name = "BufferLineMove" }, + ["bm"] = { name = "BufferLineSort" }, + + -- Telescope + ["fl"] = { name = "Telescope LSP" }, + ["fm"] = { name = "Cellular Automaton" }, -- TODO: mvoe this to its own parent group + ["fv"] = { name = "Telescope Git" }, + ["fvc"] = { name = "Commits" }, + + -- Trouble + ["lw"] = { name = "Workspace" }, + }) + + ''; }; }