Closed ted1277 closed 1 year ago
yeah, i think I'll just disable that, and have semi-manual renumbering like in org-mode.
Hi, how's this readme config:
{
"gaoDean/autolist.nvim",
ft = {
"markdown",
"text",
"tex",
"plaintex",
},
config = function()
local autolist = require("autolist")
autolist.setup()
autolist.create_mapping_hook("i", "<CR>", autolist.new)
autolist.create_mapping_hook("i", "<Tab>", autolist.indent)
autolist.create_mapping_hook("i", "<S-Tab>", autolist.indent, "<C-D>")
autolist.create_mapping_hook("n", "o", autolist.new)
autolist.create_mapping_hook("n", "O", autolist.new_before)
autolist.create_mapping_hook("n", ">>", autolist.indent)
autolist.create_mapping_hook("n", "<<", autolist.indent)
autolist.create_mapping_hook("n", "<leader>r", autolist.force_recalculate)
autolist.create_mapping_hook("n", "<leader>x", autolist.invert_entry, "")
-- optional, recalculate when deleting line
autolist.create_mapping_hook("n", "dd", autolist.force_recalculate)
end,
},
Actually, I think I'll direct this to #33, since its the same issue.
Thank you for this great plugin!
I find that when make revision in normal mode, such as using operation
x
to delete a character, the cursor is moved to the end of the line after the operation. This behavior doesn't occur when I disable the autocmdautolist.force_recalculate
.While automatically recalculating list numbers is very useful, the cursor movement after each modification makes revisions inconvenient (the cursor is moved to the end of the line right after operations like
x
andr
). Am I configuring the plugin incorrectly, or is this behavior intentional?