summaryrefslogtreecommitdiff
path: root/lua/plugins/orgmode.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/orgmode.lua')
-rw-r--r--lua/plugins/orgmode.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua
new file mode 100644
index 0000000..d6f3ac0
--- /dev/null
+++ b/lua/plugins/orgmode.lua
@@ -0,0 +1,34 @@
+return {
+ 'nvim-orgmode/orgmode',
+ dependencies = {
+ { -- Nicely formatted bullet Headings
+ "akinsho/org-bullets.nvim",
+ dependencies = "nvim-treesitter/nvim-treesitter",
+ config = true,
+ },
+ },
+ event = 'VeryLazy',
+ ft = { 'org' },
+ config = function()
+ -- This is bound to org-modern:
+ -- local Menu = require("org-modern.menu")
+ -- Setup orgmode
+ require('orgmode').setup({
+ org_agenda_files = '~/Dropbox/org/**/*',
+ org_default_notes_file = '~/Dropbox/org/index.org',
+ 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,
+}