Skip to content

Commit 392bd6c

Browse files
committed
fix: Add missing validation for insert mode
1 parent d9e2c3a commit 392bd6c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/debugprint/options.lua

+8
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ local validate_global_opts = function(o)
6868
})
6969

7070
local normal = o.keymaps.normal
71+
local insert = o.keymaps.insert
7172
local visual = o.keymaps.visual
7273

7374
if normal ~= nil then
@@ -94,6 +95,13 @@ local validate_global_opts = function(o)
9495
})
9596
end
9697

98+
if insert ~= nil then
99+
vim.validate({
100+
variable_below = { insert.plain, STRING_NIL },
101+
variable_above = { insert.variable, STRING_NIL },
102+
})
103+
end
104+
97105
if visual ~= nil then
98106
vim.validate({
99107
variable_below = { visual.variable_below, STRING_NIL },

0 commit comments

Comments
 (0)