Picker for file's table of content #1969
Replies: 2 comments 1 reply
-
If you want to grep header...
You can use I see this comment: https://github.com/neovim/neovim/blob/28eaec5e1526b2a004eadeadf6246df75cfa08e8/runtime/lua/vim/treesitter/_headings.lua#L87. And there already a EDIT: |
Beta Was this translation helpful? Give feedback.
-
You can use `FzfLua lsp_document_symbols` as long as you have lsp.
A lsp server feels like an overkill for something as simple as a single
self-contained markdown file.
There's also a `FzfLua treesitter`, instead add new picker we can improve it
Not sure why FzfLua treesitter is not showing anything for me. I made
sure treesitter for markdown is loaded. Maybe there's a specific
treesitter option I'm missing?
I see this comment: https://github.com/neovim/neovim/blob/28eaec5e1526b2a004eadeadf6246df75cfa08e8/runtime/lua/vim/treesitter/_headings.lua#L87
Also have a look here: neovim/neovim#32732
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the cool plugin.
To fzf a markdown table of content, it's as simple as
:FzfLua blines
then grepping^#
.:FzfLua blines_md
that would automatically grep out headers.Beta Was this translation helpful? Give feedback.
All reactions