We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 270a1c4 commit 20d2014Copy full SHA for 20d2014
lua/mappings.lua
@@ -8,6 +8,9 @@ end
8
9
local M = {}
10
11
+-- Expose the map function
12
+M.map = map
13
+
14
M.general = function()
15
map("i", "<C-h>", "<Left>")
16
map("i", "<C-j>", "<Down>")
lua/plugins/init.lua
@@ -146,6 +146,11 @@ local plugins = {
146
{
147
"Bekaboo/dropbar.nvim",
148
name = "dropbar",
149
+ keys = {
150
+ require("mappings").map({ "n" }, "<leader>p", function()
151
+ require("dropbar.api").pick(vim.v.count ~= 0 and vim.v.count)
152
+ end, "Toggle dropbar menu"),
153
+ },
154
event = { "BufReadPost", "BufNewFile" },
155
config = function()
156
require("dropbar").setup()
0 commit comments