Revert "refactor(nvim): remove orgmode"
This reverts commit 034a1e9335
.
This commit is contained in:
parent
6c08f746c4
commit
e42385b45f
@ -8,9 +8,9 @@ return {
|
|||||||
{ "nvim-treesitter/nvim-treesitter" },
|
{ "nvim-treesitter/nvim-treesitter" },
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>o", desc = "> Neorg" },
|
{ "<leader>N", desc = "> Neorg" },
|
||||||
{ "<leader>oj", ":Neorg journal custom<CR>", desc = "Neorg: Journal" },
|
{ "<leader>Nj", ":Neorg journal custom<CR>", desc = "Neorg: Journal" },
|
||||||
{ "<leader>ot", ":Neorg toc<CR>", desc = "Neorg: Table of Contents" },
|
{ "<leader>Nt", ":Neorg toc<CR>", desc = "Neorg: Table of Contents" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("neorg").setup({
|
require("neorg").setup({
|
||||||
|
42
dots/.config/nvim/lua/plugins/configs/org-mode.lua
Normal file
42
dots/.config/nvim/lua/plugins/configs/org-mode.lua
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-orgmode/orgmode",
|
||||||
|
dependencies = {
|
||||||
|
{ "nvim-treesitter/nvim-treesitter" },
|
||||||
|
{
|
||||||
|
"akinsho/org-bullets.nvim",
|
||||||
|
opts = {
|
||||||
|
concealcursor = true,
|
||||||
|
symbols = {
|
||||||
|
headlines = {
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ft = { "org" },
|
||||||
|
keys = {
|
||||||
|
{ "<leader>o", desc = "> Org" },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Load treesitter grammar for org
|
||||||
|
require("orgmode").setup_ts_grammar()
|
||||||
|
|
||||||
|
-- Setup orgmode
|
||||||
|
require("orgmode").setup({
|
||||||
|
org_agenda_files = "~/Notes/**/*",
|
||||||
|
org_default_notes_file = "~/Notes/refile.org",
|
||||||
|
org_startup_folded = "inherit"
|
||||||
|
})
|
||||||
|
if vim.bo.filetype == "org" then
|
||||||
|
vim.cmd.edit()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user