Skip to content

Commit

Permalink
fix: use vim.cmd instead of feedkeys
Browse files Browse the repository at this point in the history
which is faster
  • Loading branch information
armed committed Feb 24, 2024
1 parent d9bc8d3 commit 67e26a9
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 67e26a9

Please sign in to comment.