Closed
Description
If you don't want the rewrite pin the v1.0.0
tag or the commit 7e86edafb8c7e73699e0320f225464a298b96d12
.
There was a big rewrite which allows much more flexibility now.
You can now define mappings in most modes and also use functions.
The biggest change was that the mapping
config option was removed.
Check the default configuration below to see the new structure.
This also deprecated the clear_empty_lines
setting.
You can replicate this behavior with a function like this:
k = function()
vim.api.nvim_input("<esc>")
local current_line = vim.api.nvim_get_current_line()
if current_line:match("^%s+j$") then
vim.schedule(function()
vim.api.nvim_set_current_line("")
end
end
end
Metadata
Metadata
Assignees
Labels
No labels