orgmode related

This commit is contained in:
Thomas Ruoff
2023-09-26 23:16:49 +02:00
parent d0a41abdf9
commit c5c7497fa5
2 changed files with 10 additions and 7 deletions

View File

@@ -67,6 +67,7 @@ return {
}, },
sources = { sources = {
{ name = 'nvim_lsp_signature_help', group_index = 1 }, { name = 'nvim_lsp_signature_help', group_index = 1 },
{ name = 'orgmode' },
{ name = 'luasnip', max_item_count = 5, group_index = 1 }, { name = 'luasnip', max_item_count = 5, group_index = 1 },
{ name = 'nvim_lsp', max_item_count = 20, group_index = 1 }, { name = 'nvim_lsp', max_item_count = 20, group_index = 1 },
{ name = 'nvim_lua', group_index = 1 }, { name = 'nvim_lua', group_index = 1 },

View File

@@ -1,22 +1,24 @@
return { return {
'nvim-orgmode/orgmode', 'nvim-orgmode/orgmode',
dependencies = { 'akinsho/org-bullets.nvim', opts = {} }, dependencies = {
lazy = false, { 'nvim-treesitter/nvim-treesitter', lazy = true },
{ 'akinsho/org-bullets.nvim', opts = {} },
},
event = 'VeryLazy',
config = function() config = function()
-- Load treesitter grammar for org
require('orgmode').setup_ts_grammar() require('orgmode').setup_ts_grammar()
-- Setup treesitter
require('nvim-treesitter.configs').setup { 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 = { highlight = {
enable = true, enable = true,
-- Required for spellcheck, some LaTex highlights and
-- code block highlights that do not have ts grammar
additional_vim_regex_highlighting = { 'org' }, additional_vim_regex_highlighting = { 'org' },
}, },
ensure_installed = { 'org' }, -- Or run :TSUpdate org ensure_installed = { 'org' },
} }
-- Setup orgmode
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',