Removes unused plugins, adds orgmode plugin back
This commit is contained in:
parent
f1889cbe30
commit
b07dd6553b
4 changed files with 34 additions and 71 deletions
34
home/modules/nvim/config/lua/plugins/orgmode.lua
Normal file
34
home/modules/nvim/config/lua/plugins/orgmode.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
"nvim-orgmode/orgmode",
|
||||
event = "VeryLazy",
|
||||
ft = { "org" },
|
||||
config = function()
|
||||
require("orgmode").setup({
|
||||
org_agenda_files = "~/orgnzr/**/*",
|
||||
org_default_notes_file = "~/orgnzr/inbox.org",
|
||||
org_todo_keywords = { "PROJECT(p)", "TODO(t)", "NEXT(n)", "|", "DONE(d)" },
|
||||
win_split_mode = "120vsplit",
|
||||
org_startup_indented = true,
|
||||
org_indent_mode_turns_off_org_adapt_indentation = true,
|
||||
org_hide_leading_stars = true,
|
||||
org_blank_before_new_entry = { heading = false, plain_list_item = false },
|
||||
org_startup_folded = "content",
|
||||
org_ellipsis = " ",
|
||||
org_capture_templates = {
|
||||
t = { description = "Task", template = "* TODO %?\n" },
|
||||
l = { description = "Link", template = "* TODO [[%x]]%?" },
|
||||
a = { description = "Task at line", template = "* TODO %?\nat: %a" },
|
||||
},
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "org",
|
||||
callback = function()
|
||||
vim.keymap.set("i", "<S-CR>", '<cmd>lua require("orgmode").action("org_mappings.meta_return")<CR>', {
|
||||
silent = true,
|
||||
buffer = true,
|
||||
})
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue