summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-12-27 01:37:03 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-12-27 01:37:03 +0100
commita52d588c33b4746b95e16c52e85f8b1bf373b371 (patch)
tree943b7b05f32d29e9d7b5f54a62e8f224e2acab5a
parent54493eb7e02723c8da470eb3a8da35c6660dac9f (diff)
Add telescope orgmode plugin
-rw-r--r--fnl/config/telescope.fnl3
-rw-r--r--fnl/config/which-key.fnl3
-rw-r--r--fnl/plugins.fnl3
-rw-r--r--lazy-lock.json1
4 files changed, 7 insertions, 3 deletions
diff --git a/fnl/config/telescope.fnl b/fnl/config/telescope.fnl
index d421b0d..ef125bb 100644
--- a/fnl/config/telescope.fnl
+++ b/fnl/config/telescope.fnl
@@ -76,4 +76,5 @@
:override_file_sorter true
:case_mode :smart_case}}})
(telescope.load_extension :fzf)
- (telescope.load_extension :frecency)))
+ (telescope.load_extension :frecency)
+ (telescope.load_extension :orgmode)))
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index c2c0efc..3be9a7f 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -171,7 +171,8 @@
(def- gmappings
{:a [:<cmd>OrgAgendaPrompt<cr> "Open agenda prompt"]
- :c [:<cmd>OrgCapturePrompt<cr> "Open capture prompt"]})
+ :c [:<cmd>OrgCapturePrompt<cr> "Open capture prompt"]
+ :m ["<cmd>Telescope orgmode search_headings theme=dropdown<cr>" "Search Headings"]})
(let [which-key (util.prequire :which-key)]
(which-key.setup setup)
diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl
index b39a58f..2d30b9f 100644
--- a/fnl/plugins.fnl
+++ b/fnl/plugins.fnl
@@ -79,7 +79,8 @@
:dependencies [:nvim-lua/popup.nvim
:nvim-lua/plenary.nvim
:nvim-telescope/telescope-fzf-native.nvim
- :nvim-telescope/telescope-frecency.nvim]
+ :nvim-telescope/telescope-frecency.nvim
+ :joaomsa/telescope-orgmode.nvim]
:config (fn []
(require :config.telescope))}
{1 :tamago324/lir.nvim
diff --git a/lazy-lock.json b/lazy-lock.json
index 3b2f980..5673703 100644
--- a/lazy-lock.json
+++ b/lazy-lock.json
@@ -52,6 +52,7 @@
"stay-in-place.nvim": { "branch": "main", "commit": "c7aa6caad8a0e5181abbf83f50d9d8c7d06ddd43" },
"telescope-frecency.nvim": { "branch": "master", "commit": "10771fdb7b4c4b59f2b5c1e8757b0379e1314659" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "fab3e2212e206f4f8b3bbaa656e129443c9b802e" },
+ "telescope-orgmode.nvim": { "branch": "main", "commit": "eabff061c3852a9aa94e672a7d2fa4a1ef63f9e2" },
"telescope.nvim": { "branch": "master", "commit": "e960efa60e97df58e089b00270f09d60f27202c8" },
"toggleterm.nvim": { "branch": "main", "commit": "b02a1674bd0010d7982b056fd3df4f717ff8a57a" },
"trim.nvim": { "branch": "master", "commit": "909150606eab44979eb9595145796f5bcb067955" },