Skip to content

Commit fa03961

Browse files
Thales Melloandrewferrier
Thales Mello
authored andcommitted
Allow empty strings to disable mapping
1 parent 2bc4a89 commit fa03961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/debugprint/setup.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ local debugprint = require("debugprint")
77
---@param opts table
88
---@return nil
99
local map_key = function(mode, lhs, opts)
10-
if lhs ~= nil then
10+
if lhs ~= nil and lhs ~= '' then
1111
vim.api.nvim_set_keymap(mode, lhs, "", opts)
1212
end
1313
end

0 commit comments

Comments
 (0)