refactor(nvim): various orgmode improvements

This commit is contained in:
Price Hiller 2023-10-30 09:46:22 -05:00
parent cfadaecd9b
commit 127f1dd9c8
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 7 additions and 5 deletions

View File

@ -0,0 +1 @@
vim.opt_local.shiftwidth = 2

View File

@ -20,10 +20,6 @@ return {
}
}
},
ft = { "org" },
keys = {
{ "<leader>o", desc = "> Org" },
},
config = function()
-- Load treesitter grammar for org
require("orgmode").setup_ts_grammar()
@ -32,7 +28,12 @@ return {
require("orgmode").setup({
org_agenda_files = "~/Notes/**/*",
org_default_notes_file = "~/Notes/refile.org",
org_startup_folded = "inherit"
org_startup_folded = "inherit",
calendar_week_start_day = 0,
org_agenda_start_on_weekday = 0,
emacs_config = {
config_path = "$HOME/.config/emacs/init.el"
}
})
if vim.bo.filetype == "org" then
vim.cmd.edit()