moved code block section in icons section for neorg

This commit is contained in:
aminnairi
2024-01-13 21:07:09 +01:00
parent d116ebcd2a
commit ed06f14b55
@@ -1,104 +1,104 @@
return { return {
"nvim-neorg/neorg", "nvim-neorg/neorg",
build = ":Neorg sync-parsers", build = ":Neorg sync-parsers",
event = "VeryLazy", event = "VeryLazy",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"folke/which-key.nvim", "folke/which-key.nvim",
}, },
init = function() init = function()
-- Configure the key to use for keybinds used in the "core.keybinds" module -- Configure the key to use for keybinds used in the "core.keybinds" module
vim.g.maplocalleader = "," vim.g.maplocalleader = ","
end, end,
config = function() config = function()
require("neorg").setup({ require("neorg").setup({
load = { load = {
-- Default module that imports the core modules necessary for Neorg -- Default module that imports the core modules necessary for Neorg
["core.defaults"] = {}, ["core.defaults"] = {},
-- Module responsible for enhancing the icons display in Neorg files -- Module responsible for enhancing the icons display in Neorg files
["core.concealer"] = { ["core.concealer"] = {
-- Configuration for the "core.concealer" module -- Configuration for the "core.concealer" module
config = { config = {
code_block = { -- Configure icons for concealed items
conceal = true, icons = {
padding = { code_block = {
left = 2 conceal = true,
} padding = {
left = 2
}
},
-- Configure the headings
heading = {
-- List of icons to use for all headings levels from 1 to 6
icons = {
"",
"",
"",
"",
"",
"",
},
},
}, },
-- Configure icons for concealed items },
icons = { },
-- Configure the headings ["core.dirman"] = {
heading = { -- Configuration for "core.dirman" module
-- List of icons to use for all headings levels from 1 to 6 config = {
icons = { -- 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"
["core.dirman"] = { zen_mode = "zen-mode",
-- Configuration for "core.dirman" module },
config = { },
-- Workspaces are folders from where to find Neorg files -- Module for controling the ability to export Neorg files
workspaces = { ["core.export"] = {}
-- 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",
},
},
-- Module for controling the ability to export Neorg files
["core.export"] = {}
},
})
require("which-key").register({ require("which-key").register({
["<leader>o"] = { ["<leader>o"] = {
name = "Neorg", name = "Neorg",
i = { i = {
":Neorg index<CR>", ":Neorg index<CR>",
"Index" "Index"
}, },
r = { r = {
":Neorg return<CR>", ":Neorg return<CR>",
"Return" "Return"
}, },
w = { w = {
name = "Workspace", name = "Workspace",
n = { n = {
":Neorg workspace notes", ":Neorg workspace notes",
"Notes" "Notes"
}, },
d = { d = {
":Neorg workspace default", ":Neorg workspace default",
"Default" "Default"
} }
}, },
p = { p = {
name = "Presenter", name = "Presenter",
s = { s = {
":Neorg presenter start<CR>", ":Neorg presenter start<CR>",
"Start", "Start",
}, },
S = { S = {
":Neorg presenter stop<CR>", ":Neorg presenter stop<CR>",
"Stop", "Stop",
}, },
}, },
}, },
}) })
end, end,
} }