Skip to content

Commit

Permalink
fix: Add missing validation for insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed Nov 22, 2024
1 parent d9e2c3a commit 392bd6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/debugprint/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ local validate_global_opts = function(o)
})

local normal = o.keymaps.normal
local insert = o.keymaps.insert
local visual = o.keymaps.visual

if normal ~= nil then
Expand All @@ -94,6 +95,13 @@ local validate_global_opts = function(o)
})
end

if insert ~= nil then
vim.validate({
variable_below = { insert.plain, STRING_NIL },
variable_above = { insert.variable, STRING_NIL },
})
end

if visual ~= nil then
vim.validate({
variable_below = { visual.variable_below, STRING_NIL },
Expand Down

0 comments on commit 392bd6c

Please sign in to comment.