From 323455f36b497b11116e0777d5cd8e9f4a436e2a Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 22 Nov 2023 10:29:49 -0600 Subject: [PATCH] refactor(nvim): improve org-mode setup --- dots/.config/nvim/lua/plugins/configs/org-mode.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/org-mode.lua b/dots/.config/nvim/lua/plugins/configs/org-mode.lua index 6cc184f6..fdf8f5de 100644 --- a/dots/.config/nvim/lua/plugins/configs/org-mode.lua +++ b/dots/.config/nvim/lua/plugins/configs/org-mode.lua @@ -21,9 +21,15 @@ return { } } }, + ft = { "org" }, + keys = { + { "o", desc = "> Org" }, + }, + init = function() + require("orgmode").setup_ts_grammar() + end, config = function() -- Load treesitter grammar for org - require("orgmode").setup_ts_grammar() -- Setup orgmode require("orgmode").setup({