Skip to content

Commit

Permalink
extmarks: set resolved input to default value
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanders committed Jul 26, 2021
1 parent f401e23 commit 795c2e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/snippets/inserters/extmarks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ local function entrypoint(structure)
local mark_row, mark_col, _, mark_end_col = get_extmark_pos(current_var.first_index)
api.nvim_win_set_cursor(0, { mark_row + 1, mark_end_col })

-- Set resolved input to default value if one exists
resolved_inputs[current_var.id] = current_var.default

vim.register_keystroke_callback(
vim.schedule_wrap(function()
if R.finished or R.aborted then
Expand Down

0 comments on commit 795c2e4

Please sign in to comment.