]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - config/nvim/lua/plugins.lua
Add orgmode
[rbdr/dotfiles] / config / nvim / lua / plugins.lua
index 24154d995886c17104b0c9acc11bfe70e58964c2..e17b35bd85deb04133bb4ea357714610a17d5a02 100644 (file)
@@ -69,5 +69,20 @@ require('lazy').setup({
   -- Tools
   'vim-scripts/LargeFile',
   'tpope/vim-fugitive',
-  'milkypostman/vim-togglelist'
+  'milkypostman/vim-togglelist',
+
+  -- Org Mode
+  { 'nvim-orgmode/orgmode',
+    event = 'VeryLazy',
+    config = function()
+      -- Load treesitter grammar for org
+      require('orgmode').setup_ts_grammar()
+
+      -- Setup orgmode
+      require('orgmode').setup({
+        org_agenda_files = '~/brain/**/*.org',
+        org_default_notes_file = '~/brain/inbox.org',
+      })
+  end,
+  }
 })