make org a bit prettier

This commit is contained in:
Thomas Ruoff
2023-09-13 08:23:52 +02:00
parent 7b8a35f127
commit d9f4f8153e

View File

@@ -1,10 +1,22 @@
return { return {
'nvim-orgmode/orgmode', 'nvim-orgmode/orgmode',
dependencies = { 'akinsho/org-bullets.nvim', opts = {} },
lazy = false, lazy = false,
ft = { 'org' },
config = function() config = function()
require('orgmode').setup_ts_grammar() require('orgmode').setup_ts_grammar()
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 { require('orgmode').setup {
org_agenda_files = { '~/org/**/*' }, org_agenda_files = { '~/org/**/*' },
org_default_notes_file = '~/org/refile.org', org_default_notes_file = '~/org/refile.org',