dotfiles/.config/nvim/lua/tsousa/plugins/orgmode.lua

33 lines
1.2 KiB
Lua
Raw Normal View History

2023-10-11 18:13:14 +01:00
return {
"nvim-orgmode/orgmode",
2024-02-04 18:05:23 +00:00
dependencies = {
"nvim-treesitter/nvim-treesitter",
"akinsho/org-bullets.nvim",
},
2023-10-11 18:13:14 +01:00
config = function()
-- -- Load custom treesitter grammar for org filetype
2024-02-04 18:05:23 +00:00
require("org-bullets").setup({
symbols = {
headlines = { "", "", "", "" },
},
})
2023-10-11 18:13:14 +01:00
require('orgmode').setup_ts_grammar()
-- Treesitter configuration
require('nvim-treesitter.configs').setup {
-- If TS highlights are not enabled at all, or disabled via `disable` prop,
-- highlighting will fallback to default Vim syntax highlighting
highlight = {
enable = true,
-- Required for spellcheck, some LaTex highlights and
-- code block highlights that do not have ts grammar
additional_vim_regex_highlighting = { 'org' },
},
ensure_installed = { 'org' }, -- Or run :TSUpdate org
}
require('orgmode').setup({
2024-02-04 18:05:23 +00:00
org_agenda_files = { '~/Nextcloud/org/**/*', '~/Nextcloud/Documents/uni/**/*' },
2023-11-10 21:15:14 +00:00
org_default_notes_file = '~/Nextcloud/org/refile.org',
2023-10-11 18:13:14 +01:00
})
end
}