autolist.nvim
autolist.nvim copied to clipboard
Indentation(AutolistTab) is not same with tabstop option
Thank you for your efforts
I set options tabstop
and shiftwidth
to 4. It works when I disable autolist plugin.
But the first indentation's tabstop is 3 and this behavior is invoked when I erase the tab.
After first indentation, the other indent with TAB does work normally ( 4 spaces )
It is my configuraiton
config = function ()
local autolist = require('autolist')
autolist.setup({
})
local User_markdown = vim.api.nvim_create_augroup('User_markdown', {clear = true})
vim.api.nvim_create_autocmd('FileType',{
group = User_markdown,
pattern = {'markdown', 'text'},
callback = function ()
local opts = {noremap = true, buffer = 0}
vim.keymap.set('i', '<TAB>' , '<Cmd>AutolistTab<CR>' , opts)
vim.keymap.set('i', '<S-TAB>' , '<Cmd>AutolistShiftTab<CR>' , opts)
vim.keymap.set('i', '<CR>' , '<CR><Cmd>AutolistNewBullet<CR>' , opts)
vim.keymap.set('n', 'o' , 'o<Cmd>AutolistNewBullet<CR>' , opts)
vim.keymap.set('n', 'O' , 'O<Cmd>AutolistNewBulletBefore<CR>', opts)
vim.keymap.set('n', '<leader>mn', '<Cmd>AutolistCycleNext<CR>' , opts)
vim.keymap.set('n', '<leader>mr', '<Cmd>AutolistRecalculate<CR>' , opts)
vim.keymap.set('n', 'dd' , 'dd<Cmd>AutolistRecalculate<CR>' , opts)
vim.keymap.set('v', 'd' , 'd<Cmd>AutolistRecalculate<CR>' , opts)
end
})
end