From d6d4a48568834b2ba16fb3c0876a1ddafa5aabe0 Mon Sep 17 00:00:00 2001 From: Lyz Date: Fri, 9 Feb 2024 15:08:40 +0100 Subject: [PATCH] docs: improve installation instructions --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cedb7b7..e69d383 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,27 @@ Refile heading from capture or current file under destination with `:Telescope o [![asciicast](https://asciinema.org/a/1X4oG6s5jQZrJJI3DfEzJU3wN.svg)](https://asciinema.org/a/1X4oG6s5jQZrJJI3DfEzJU3wN) -## Setup +## Installation +### With lazyvim + +```lua + { + "lyz-code/telescope-orgmode.nvim", + event = "VeryLazy", + dependencies = { + "nvim-orgmode/orgmode", + "nvim-telescope/telescope.nvim", + }, + config = function() + require("telescope").load_extension("orgmode") + + vim.keymap.set("n", "r", require("telescope").extensions.orgmode.refile_heading) + vim.keymap.set("n", "fh", require("telescope").extensions.orgmode.search_headings) + end, + } +``` + +### Without lazyvim You can setup the extension by doing: