autolist.nvim
autolist.nvim copied to clipboard
`TAB` has some bug at Insert mode
before tab
after tab
my config
return {
"gaoDean/autolist.nvim",
priority = 1,
ft = {
"markdown",
"text",
},
config = function()
require("autolist").setup()
vim.keymap.set("i", "<tab>", "<cmd>AutolistTab<cr>")
vim.keymap.set("i", "<s-tab>", "<cmd>AutolistShiftTab<cr>")
vim.keymap.set("i", "<CR>", "<CR><cmd>AutolistNewBullet<cr>")
vim.keymap.set("n", "o", "o<cmd>AutolistNewBullet<cr>")
vim.keymap.set("n", "O", "O<cmd>AutolistNewBulletBefore<cr>")
vim.keymap.set("n", "<CR>", "<cmd>AutolistToggleCheckbox<cr><CR>")
vim.keymap.set("n", "<C-r>", "<cmd>AutolistRecalculate<cr>")
end,
dependencies = {
{
"windwp/nvim-autopairs",
event = "VeryLazy",
},
},
}