new: nvim: adding orgmode plugin

This commit is contained in:
qwjyh 2023-10-18 15:01:55 +09:00
parent 4432fd2ea5
commit ac00b91145
No known key found for this signature in database
GPG key ID: F30838CD89227A79

View file

@ -130,6 +130,32 @@ require('lazy').setup({
'folke/trouble.nvim', 'folke/trouble.nvim',
-- config = function -- config = function
}, },
{
'nvim-orgmode/orgmode',
dependencies = {
{ 'nvim-treesitter/nvim-treesitter', lazy = true },
},
event = 'VeryLazy',
config = function()
-- Load treesitter grammer for orgmode
require('orgmode').setup_ts_grammar()
-- Setup treesitter
require('nvim-treesitter.configs').setup({
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'org' },
},
ensure_installed = { 'org' },
})
-- Setup orgmode
require('orgmode').setup({
org_agenda_files = '~/orgfiles/**/*',
org_default_notes_file = '~/orgfiles/refile.org',
})
end,
},
}) })
----------------------------------------------------------- -----------------------------------------------------------
@ -606,6 +632,7 @@ cmp.setup {
{ name = 'path' }, { name = 'path' },
{ name = 'nvim_lua' }, { name = 'nvim_lua' },
{ name = 'luasnip' }, { name = 'luasnip' },
{ name = 'orgmode' },
}, },
} }
-- cmdline completions -- cmdline completions