32 lines
913 B
Lua
32 lines
913 B
Lua
return {
|
|
'nvim-orgmode/orgmode',
|
|
event = 'VeryLazy',
|
|
ft = { 'org' },
|
|
config = function()
|
|
-- Setup orgmode
|
|
require('orgmode').setup({
|
|
org_agenda_files = '~/orgfiles/**/*',
|
|
org_default_notes_file = '~/orgfiles/refile.org',
|
|
org_hide_emphasis_markers = true,
|
|
})
|
|
|
|
-- Enable line wrapping and line breaking for Org files
|
|
vim.api.nvim_create_augroup("OrgMode", { clear = true })
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = "org",
|
|
callback = function()
|
|
vim.opt_local.wrap = true
|
|
vim.opt_local.linebreak = true
|
|
vim.opt_local.textwidth = 80
|
|
end,
|
|
})
|
|
|
|
-- AUTHORS_NOTE: If you are using nvim-treesitter with ~ensure_installed = "all"~ option
|
|
-- add ~org~ to ignore_install
|
|
-- require('nvim-treesitter.configs').setup({
|
|
-- ensure_installed = 'all',
|
|
-- ignore_install = { 'org' },
|
|
-- })
|
|
end,
|
|
}
|