summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/orgmode.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/ben/plugins/orgmode.lua')
-rw-r--r--lua/ben/plugins/orgmode.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/ben/plugins/orgmode.lua b/lua/ben/plugins/orgmode.lua
new file mode 100644
index 0000000..1007b0a
--- /dev/null
+++ b/lua/ben/plugins/orgmode.lua
@@ -0,0 +1,26 @@
+return {
+ "nvim-orgmode/orgmode",
+ dependencies = {
+ { "nvim-treesitter/nvim-treesitter", lazy = true },
+ },
+ event = "VeryLazy",
+ config = function()
+ -- Load treesitter grammar for org
+ require("orgmode").setup_ts_grammar()
+
+ -- Setup treesitter
+ require("nvim-treesitter.configs").setup({
+ highlight = {
+ enable = true,
+ additional_vim_regex_highlighting = { "org" },
+ },
+ ensure_installed = { "org" },
+ })
+
+ -- Setup orgmode
+ require("orgmode").setup({
+ org_agenda_files = "~/Dropbox/org/*",
+ org_default_notes_file = "~/Dropbox/org/refile.org",
+ })
+ end,
+}