neorg: dirman not working, ugly fix

This commit is contained in:
Fabrice Mouhartem 2024-04-18 16:00:23 +02:00
parent e125c201cb
commit 94cddafa6e
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
2 changed files with 31 additions and 33 deletions

View File

@ -256,7 +256,37 @@ require('lazy').setup({
dependencies = { "luarocks.nvim" },
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
version = "*", -- Pin Neorg to the latest stable release
config = true,
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {},
["core.concealer"] = {
config = {
icon_preset = "diamond",
}
},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/Sync/neorg",
},
default_workspace = "notes",
}
},
["core.export"] = {
config = {
export_dir = "<export-dir>/<language>",
},
},
["core.esupports.metagen"] = {
config = {
author = "Chouhartem",
type = "empty",
},
},
}
}
end,
},
-- vim-speeddating
'tpope/vim-speeddating',

View File

@ -38,35 +38,3 @@ vim.api.nvim_set_keymap("n", "<Leader>nee", ":Neorg export to-file /tmp/neorg-ex
{ noremap = true, silent = true, desc = "[N]eorg [E]xport Predefined" })
vim.api.nvim_set_keymap("n", "<Leader>nef", ":Neorg export to-file ",
{ noremap = true, silent = true, desc = "[N]eorg [E]xport [F]ile" })
local neorg = require('neorg')
neorg.setup {
load = {
["core.defaults"] = {},
["core.concealer"] = {
config = {
icon_preset = "diamond",
}
},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/Sync/neorg",
},
default_workspace = "notes",
}
},
["core.export"] = {
config = {
export_dir = "<export-dir>/<language>",
},
},
["core.esupports.metagen"] = {
config = {
author = "Chouhartem",
type = "empty",
},
},
}
}