summaryrefslogtreecommitdiff
path: root/lua/plugins/orgmode.lua
blob: 83deb26b5c0a625d6438f1b84be07f7c5a02164f (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
return {
	"nvim-orgmode/orgmode",
	dependencies = {
		{ -- Nicely formatted bullet Headings
			"akinsho/org-bullets.nvim",
			dependencies = {
				"nvim-treesitter/nvim-treesitter",
			},
			config = true,
		},
		{
			"dhruvasagar/vim-table-mode",
		},
	},
	event = "VeryLazy",
	ft = { "org" },
	config = function()
		-- This is bound to org-modern:
		-- local Menu = require("org-modern.menu")
		-- Setup orgmode
		require("orgmode").setup({
			-- win_split_mode = {'float', 0.9},
			-- win_split_mode = 'float',
			org_agenda_files = "~/Dropbox/org/**/*",
			org_default_notes_file = "~/Dropbox/org/index.org",
			calendar_week_start_day = 0,
			emacs_config = {
				-- executable_path = '/opt/homebrew/bin/emacs',
				config_path = "$HOME/.config/emacs/early-init.el",
			},
		})
		vim.opt.conceallevel = 2
		vim.opt.concealcursor = "v"

		-- NOTE: If you are using nvim-treesitter with `ensure_installed = "all"` option
		-- add `org` to ignore_install
		-- require('nvim-treesitter.configs').setup({
		--   ensure_installed = 'all',
		--   ignore_install = { 'org' },
		-- })
	end,
}