added more settings for neorg

This commit is contained in:
aminnairi
2024-01-13 20:00:41 +01:00
parent 4398379fa6
commit be5e7a6d24
@@ -1,42 +1,77 @@
return { return {
"nvim-neorg/neorg", "nvim-neorg/neorg",
build = ":Neorg sync-parsers", build = ":Neorg sync-parsers",
dependencies = { "nvim-lua/plenary.nvim" }, event = "VeryLazy",
init = function() dependencies = {
vim.g.maplocalleader = "," "nvim-lua/plenary.nvim",
end, "folke/which-key",
config = function() },
require("neorg").setup { init = function()
load = { -- Configure the key to use for keybinds used in the "core.keybinds" module
["core.defaults"] = {}, vim.g.maplocalleader = ","
["core.concealer"] = { end,
config = { config = function()
-- Configure icons for concealed items require("neorg").setup({
icons = { load = {
-- Configure the headings -- Default module that imports the core modules necessary for Neorg
heading = { ["core.defaults"] = {},
-- List of icons to use for all headings levels from 1 to 6 -- Module responsible for enhancing the icons display in Neorg files
icons = { ["core.concealer"] = {
"", -- Configuration for the "core.concealer" module
"", config = {
"", -- Configure icons for concealed items
"", icons = {
"", -- Configure the headings
"" heading = {
} -- List of icons to use for all headings levels from 1 to 6
} icons = {
} "",
} "",
}, "",
["core.dirman"] = { "",
config = { "",
workspaces = { "",
notes = "~/git/github.com/aminnairi/notes", },
}, },
}, },
}, },
}, },
} ["core.dirman"] = {
-- TODO: add keybinds for neorg -- Configuration for "core.dirman" module
end, config = {
-- Workspaces are folders from where to find Neorg files
workspaces = {
-- My personal notes
notes = "~/git/github.com/aminnairi/notes",
},
},
},
-- Module for controling the presentation mode for Neorg files
["core.presenter"] = {
-- Configuration for the presenter module
config = {
-- Plugin to use, here "folke/zen-mode"
zen_mode = "zen-mode",
},
},
},
})
require("which-key").register({
["<leader>o"] = {
name = "Neorg",
p = {
name = "Presenter",
s = {
":Neorg presenter start",
"Start",
},
S = {
":Neorg presenter stop",
"Stop",
},
},
},
})
end,
} }