Does someone know how the outline in the second image is created? I'm using tagbar but I would prefer to get the outline from LSP or Treesitter and only fallback to ctags.
AstroNvim is using aerial.nvim which is a great code outline plugin. It has several supported backends on top of LSP and Treesitter it also supports Man page structure and Markdown structure explicitly. We also use the API for building the breadcrumbs at the top of each window as well!
Thanks, I will give it a try! Maybe event AstroNvim, because it's very close to my current config, which is probably pretty outdated in many places. Especially the all in lua config is very compelling.