summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/orgmode.lua
blob: 6b74944444af4a1efbd31713651eea7c55473a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
return {
	"nvim-orgmode/orgmode",
	dependencies = "nvim-treesitter/nvim-treesitter",
	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,
}