Skip to content

Commit 4d98967

Browse files
committed
Add README.md
1 parent 44bc774 commit 4d98967

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# telescope-orgmode.nvim
2+
3+
Integration for [orgmode](https://github.com/nvim-orgmode/orgmode) with
4+
[telescope.nvim](https://github.com/nvim-telescope/telescope.nvim).
5+
6+
## Demo
7+
8+
TODO
9+
10+
## Setup
11+
12+
You can setup the extension by doing:
13+
14+
```lua
15+
require('telescope').load_extension('orgmode')
16+
```
17+
18+
To replace the default refile prompt:
19+
20+
```lua
21+
vim.api.nvim_create_autocmd('FileType', {
22+
pattern = 'org',
23+
group = vim.api.nvim_create_augroup('orgmode_telescope_nvim', { clear = true })
24+
callback = function()
25+
vim.keymap.set('n', '<leader>or', require('telescope').extensions.orgmode.refile_heading)
26+
end,
27+
})
28+
```
29+
30+
## Available commands
31+
32+
```viml
33+
:Telescope orgmode search_headings
34+
:Telescope orgmode refile_heading
35+
```
36+
37+
## Available functions
38+
39+
```lua
40+
require('telescope').extensions.orgmode.search_headings
41+
require('telescope').extensions.orgmode.refile_heading
42+
```

0 commit comments

Comments
 (0)