diff --git a/.config/nvim/.github/README.md b/.config/nvim/.github/README.md index 24a2a3aa..3473b4d2 100644 --- a/.config/nvim/.github/README.md +++ b/.config/nvim/.github/README.md @@ -327,6 +327,7 @@ - [iamcco/markdown-preview.nvim](https://dotfyle.com/plugins/iamcco/markdown-preview.nvim) - [toppair/peek.nvim](https://dotfyle.com/plugins/toppair/peek.nvim) - [lukas-reineke/headlines.nvim](https://dotfyle.com/plugins/lukas-reineke/headlines.nvim) +- [crispgm/telescope-heading.nvim](https://dotfyle.com/plugins/crispgm/telescope-heading.nvim) diff --git a/.config/nvim/lua/plugins/extras/editor/telescope/headings.lua b/.config/nvim/lua/plugins/extras/editor/telescope/headings.lua new file mode 100644 index 00000000..5e3dc5cf --- /dev/null +++ b/.config/nvim/lua/plugins/extras/editor/telescope/headings.lua @@ -0,0 +1,18 @@ +return { + "crispgm/telescope-heading.nvim", + config = function() + LazyVim.on_load("telescope.nvim", function() + require("telescope").setup({ + extensions = { + heading = { + treesitter = true, + }, + }, + }) + require("telescope").load_extension("heading") + end) + end, + keys = { + { "s#", "Telescope heading", desc = "Headings" }, + }, +}