Skip to content

Autoindent isn't automatically applied when creating a new line using Lua API #27329

Closed Answered by zeertzjq
anthony-S93 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use this:

vim.keymap.set("i", "<C-J>", "<C-O>o", opts)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@anthony-S93
Comment options

@zeertzjq
Comment options

Answer selected by anthony-S93
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