diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins/orgmode.lua | 16 | ||||
| -rw-r--r-- | lua/plugins/treesitter.lua | 3 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua new file mode 100644 index 0000000..1db1581 --- /dev/null +++ b/lua/plugins/orgmode.lua @@ -0,0 +1,16 @@ +return { + "nvim-orgmode/orgmode", + keys = { + { "<Leader>oa" }, + { "<Leader>oc" }, + }, + ft = {"org"}, + config = function() + require("orgmode").setup_ts_grammar() + require("orgmode").setup { + org_agenda_files = {'~/my-orgs/**/*'}, + org_default_notes_file = '~/my-orgs/refile.org', + } + require("cmp").setup { sources = { { name = "orgmode" } } } + end, +} diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index b0d360c..d592366 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -28,10 +28,11 @@ return { "typescript", "vim", "yaml", + "org", }, highlight = { enable = true, - additional_vim_regex_highlighting = false, + additional_vim_regex_highlighting = { "org" }, }, indent = { enable = true, |