Skip to content

How to explain why startinsert() does not work? #81

Closed Answered by willothy
przepompownia asked this question in Q&A
Discussion options

You must be logged in to vote

I just tried this in my config and it does work.

Just replace

vim.schedule_wrap(function()
  vim.cmd.startinsert()
end)

with

vim.schedule(vim.cmd.startinsert)

in your post_open callback.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@willothy
Comment options

Comment options

You must be logged in to vote
3 replies
@przepompownia
Comment options

@przepompownia
Comment options

@willothy
Comment options

Answer selected by willothy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants