71 lines
2.0 KiB
Lua
71 lines
2.0 KiB
Lua
return {
|
|
"nvim-orgmode/orgmode",
|
|
-- enabled = false,
|
|
-- workaround since recent commit caused errors
|
|
commit = "03863e9a4a617deab3d58023d54dc8e38730cf6d",
|
|
dependencies = {
|
|
"nvim-orgmode/org-bullets.nvim",
|
|
"saghen/blink.cmp",
|
|
},
|
|
event = "VeryLazy",
|
|
config = function()
|
|
-- Setup orgmode
|
|
require("orgmode").setup({
|
|
mappings = {
|
|
org = {
|
|
org_toggle_checkbox = "<S-F12>",
|
|
},
|
|
},
|
|
org_agenda_files = "C:/Users/EmmaTurner/OneDrive - Exponential Technology Group, Inc/Documents/Notes/**/*",
|
|
org_agenda_custom_commands = {
|
|
r = {
|
|
description = "Revisit",
|
|
types = {
|
|
{
|
|
type = "tags",
|
|
match = "revisit",
|
|
org_agenda_overiding_header = "Tasks to revisit",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
org_default_notes_file = "C:/Users/EmmaTurner/OneDrive - Exponential Technology Group, Inc/Documents/Notes/refile.org",
|
|
-- org_todo_keywords = { "TODO", "WAITING", "|", "DONE" },
|
|
-- Use fast access TODO States, instead of cycling use set character (or first letter) to select TODO state
|
|
org_todo_keywords = { "TODO(t)", "WAITING", "|", "DONE" },
|
|
org_hide_emphasis_markers = true, -- Conceal bold/italic/underline/code/verbatim markers
|
|
calendar_week_start_day = 0, -- Start week on Sunday(0) instead of Monday(1)
|
|
ui = {
|
|
input = {
|
|
use_vim_ui = true,
|
|
},
|
|
},
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = "org",
|
|
callback = function()
|
|
vim.keymap.set("i", "<S-CR>", function()
|
|
require("orgmode").action("org_mappings.meta_return")
|
|
end)
|
|
end,
|
|
})
|
|
|
|
require("org-bullets").setup()
|
|
require("blink.cmp").setup({
|
|
sources = {
|
|
per_filetype = {
|
|
org = { "orgmode" },
|
|
},
|
|
providers = {
|
|
orgmode = {
|
|
name = "Orgmode",
|
|
module = "orgmode.org.autocompletion.blink",
|
|
fallbacks = { "buffer" },
|
|
},
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|