mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-30 15:44:37 +02:00
fix losing dashboard command add whichkey binding for lunarconfig
This commit is contained in:
parent
0c6771a385
commit
d6b00cec25
3 changed files with 15 additions and 5 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue