summaryrefslogtreecommitdiff
path: root/lua/lv-which-key
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-06 23:08:53 -0400
committerchristianchiarulli <[email protected]>2021-07-06 23:08:53 -0400
commitd6b00cec25296e83c28b2da0cbfe9bc7ad629a70 (patch)
tree32f8f73e63bb5a7d9be9f10a02e8f466bcb8233d /lua/lv-which-key
parent0c6771a385e3f2e4a9f1e5ae80eb7615e4fa99e0 (diff)
fix losing dashboard command add whichkey binding for lunarconfig0.4.3
Diffstat (limited to 'lua/lv-which-key')
-rw-r--r--lua/lv-which-key/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua
index f36815b6..984cd202 100644
--- a/lua/lv-which-key/init.lua
+++ b/lua/lv-which-key/init.lua
@@ -84,13 +84,23 @@ vim.api.nvim_set_keymap("v", "<leader>/", ":CommentToggle<CR>", { noremap = true
-- close buffer
vim.api.nvim_set_keymap("n", "<leader>c", ":BufferClose<CR>", { noremap = true, silent = true })
+-- open lv-config
+vim.api.nvim_set_keymap(
+ "n",
+ "<leader>.",
+ ":e " .. CONFIG_PATH .. "/lv-config.lua<CR>",
+ { noremap = true, silent = true }
+)
+
local mappings = {
+ ["."] = "LunarConfig",
["/"] = "Comment",
["c"] = "Close Buffer",
["e"] = "Explorer",
["f"] = "Find File",
["h"] = "No Highlight",
+ [";"] = "Dashboard",
b = {
name = "Buffers",
j = { "<cmd>BufferPick<cr>", "jump to buffer" },