Skip to content

Commit

Permalink
Merge pull request #52 from julienvincent/fix/proper-insert-mode-switch
Browse files Browse the repository at this point in the history
fix: use vim.cmd instead of feedkeys
  • Loading branch information
armed committed Feb 24, 2024
2 parents d9bc8d3 + 67e26a9 commit 9a895d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-paredit/api/cursor.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local M = {}

function M.insert_mode()
vim.api.nvim_feedkeys("i", "n", true)
vim.cmd("startinsert")
end

function M.get_cursor_pos(range_or_node, opts)
Expand Down

0 comments on commit 9a895d1

Please sign in to comment.