lukas-reineke / headlines.nvim

This plugin adds horizontal highlights for text filetypes, like markdown, orgmode, and neorg.
MIT License
688 stars 28 forks source link

bullets make editing heading level a bit less convenient? #66

Open xfzv opened 7 months ago

xfzv commented 7 months ago

I've just updated to d39c4e6ed8963717bc9b2dc39fada8fe1039e9bf

Unless I'm missing something, the new bullets feature make editing heading a bit more difficult than before.

return {
  "lukas-reineke/headlines.nvim",
  dependencies = "nvim-treesitter/nvim-treesitter",
  commit = "e3d7bfdf40e41a020d966d35f8b48d75b90367d2",
  opts = {},
}

01-before

I could simply enter insert mode and add/remove any * character to change the heading level.


return {
  "lukas-reineke/headlines.nvim",
  dependencies = "nvim-treesitter/nvim-treesitter",
  opts = {},
}

02-after

Now, when entering insert mode, the * characters are no longer displayed, only the bullet signs are. I have to press x as many times as required (once for heading 1, twice for heading 2 and so on) to completely delete the heading, then recreate it with *.

I ended up using

opts = {
    bullets = {},
}

for now. Just curious if this is me being an idiot and missing something obvious, or if this could be a minor regression.

Thanks!

lukas-reineke commented 7 months ago

Yeah I agree, it's not handled well. I have to refactor the whole plugin a bit, I'll address this then.