You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can setup the extension by adding the following to your config:
require('telescope').load_extension('heading')
Tree-sitter Support
telescope-heading supports Tree-sitter for parsing documents and finding headings. But not all file types are supported, you may check Supported File Types section and inspect the Tree-sitter column.
-- add nvim-treesitteruse('nvim-treesitter/nvim-treesitter')
-- make sure you have already installed treesitter modulesrequire('nvim-treesitter.configs').setup({
ensure_installed= {
-- ..'markdown',
'rst',
-- ..
},
})
-- enable treesitter parsinglocaltelescope=require('telescope')
telescope.setup({
-- ...extensions= {
heading= {
treesitter=true,
},
},
})
-- `load_extension` must be after `telescope.setup`telescope.load_extension('heading')
If nvim-treesitter was not correctly loaded, it would have fallen back to normal parsing. You may check nvim-treesitter configurations and whether your language is TSInstalled.
Telescope Picker Options
We may specific picker options for telescope-heading, which overrides the general telescope picker options.