parent
60064b1c49
commit
395543dab4
@ -0,0 +1,27 @@
|
|||||||
|
local parser_config = require"nvim-treesitter.parsers".get_parser_configs()
|
||||||
|
parser_config.org = {
|
||||||
|
install_info = {
|
||||||
|
url = 'https://github.com/milisims/tree-sitter-org',
|
||||||
|
revision = 'main',
|
||||||
|
files = {'src/parser.c', 'src/scanner.cc'}
|
||||||
|
},
|
||||||
|
filetype = 'org'
|
||||||
|
}
|
||||||
|
|
||||||
|
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,
|
||||||
|
-- disable = {'org'}, -- Remove this to use TS highlighter for some of the highlights (Experimental)
|
||||||
|
additional_vim_regex_highlighting = {'org'} -- Required since TS highlighter doesn't support all syntax features (conceal)
|
||||||
|
},
|
||||||
|
ensure_installed = {'org'} -- Or run :TSUpdate org
|
||||||
|
}
|
||||||
|
|
||||||
|
require('orgmode').setup({
|
||||||
|
org_agenda_files = {
|
||||||
|
'~/.org/work/*', '~/org/learning/*', "~/.org/projects/*",
|
||||||
|
"~/.org/calendars/*", "~/.org/conferences/*"
|
||||||
|
},
|
||||||
|
org_default_notes_file = '~/.org/refile.org'
|
||||||
|
})
|
Loading…
Reference in new issue