Skip to content

Commit d6d4a48

Browse files
committed
docs: improve installation instructions
1 parent f678abc commit d6d4a48

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,27 @@ Refile heading from capture or current file under destination with `:Telescope o
1313

1414
[![asciicast](https://asciinema.org/a/1X4oG6s5jQZrJJI3DfEzJU3wN.svg)](https://asciinema.org/a/1X4oG6s5jQZrJJI3DfEzJU3wN)
1515

16-
## Setup
16+
## Installation
17+
### With lazyvim
18+
19+
```lua
20+
{
21+
"lyz-code/telescope-orgmode.nvim",
22+
event = "VeryLazy",
23+
dependencies = {
24+
"nvim-orgmode/orgmode",
25+
"nvim-telescope/telescope.nvim",
26+
},
27+
config = function()
28+
require("telescope").load_extension("orgmode")
29+
30+
vim.keymap.set("n", "<leader>r", require("telescope").extensions.orgmode.refile_heading)
31+
vim.keymap.set("n", "<leader>fh", require("telescope").extensions.orgmode.search_headings)
32+
end,
33+
}
34+
```
35+
36+
### Without lazyvim
1737

1838
You can setup the extension by doing:
1939

0 commit comments

Comments
 (0)