refactor(nvim): various orgmode improvements
This commit is contained in:
parent
cfadaecd9b
commit
127f1dd9c8
1
dots/.config/nvim/after/ftplugin/org.lua
Normal file
1
dots/.config/nvim/after/ftplugin/org.lua
Normal file
@ -0,0 +1 @@
|
||||
vim.opt_local.shiftwidth = 2
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user