From de5c124dc2c2160f1c978a4bc29a4493815f37a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 5 Jun 2024 23:23:01 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20new=20extra:=20telesc?= =?UTF-8?q?ope-headings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/.github/README.md | 1 + .../extras/editor/telescope/headings.lua | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .config/nvim/lua/plugins/extras/editor/telescope/headings.lua 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" }, + }, +}