summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 02:32:33 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 02:32:33 +0200
commitb59f9a12f4799849802c17cf517cd6c76cf57122 (patch)
tree2bf3cb980310251b2b6d3c00db49e14e48a90a7e /fnl
parent0c9d0371931277ce253e899e9d8a462bf228afef (diff)
Fix orgmode
Diffstat (limited to 'fnl')
-rw-r--r--fnl/config/cmp.fnl1
-rw-r--r--fnl/config/which-key.fnl4
-rw-r--r--fnl/plugins.fnl3
3 files changed, 5 insertions, 3 deletions
diff --git a/fnl/config/cmp.fnl b/fnl/config/cmp.fnl
index 73ebba4..24115d7 100644
--- a/fnl/config/cmp.fnl
+++ b/fnl/config/cmp.fnl
@@ -26,6 +26,7 @@
{:name :nvim_lua}
{:name :luasnip}
{:name :spell}
+ {:name :orgmode}
{:name :buffer :keyword_length 4}
{:name :path :keyword_length 6}]
:formatting {:format (lspkind.cmp_format {:with_text true
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index 2fa2d5b..fdd76b5 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -117,9 +117,9 @@
"Workspace Symbols"]})
(def- org {:name :Orgmode
- :a ["<cmd>lua require('orgmode').action('agenda.prompt')"
+ :a ["<cmd>lua require('orgmode').action('agenda.prompt')<cr>"
"Open agenda prompt"]
- :c ["<cmd>lua require('orgmode').action('capture.prompt')"
+ :c ["<cmd>lua require('orgmode').action('capture.prompt')<cr>"
"Open capture prompt"]})
(def- packer {:name :Packer
diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl
index 1c05b5a..6527ed9 100644
--- a/fnl/plugins.fnl
+++ b/fnl/plugins.fnl
@@ -80,7 +80,8 @@
(def misc [{1 :nvim-orgmode/orgmode
:config (fn []
- (require :config.window-picker))
+ (require :config.orgmode))
+ :requires :nvim-treesitter/nvim-treesitter
:event :BufWinEnter}
{1 :akinsho/toggleterm.nvim
:config (fn []