mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
moved code block section in icons section for neorg
This commit is contained in:
@@ -1,104 +1,104 @@
|
||||
return {
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"folke/which-key.nvim",
|
||||
},
|
||||
init = function()
|
||||
-- Configure the key to use for keybinds used in the "core.keybinds" module
|
||||
vim.g.maplocalleader = ","
|
||||
end,
|
||||
config = function()
|
||||
require("neorg").setup({
|
||||
load = {
|
||||
-- Default module that imports the core modules necessary for Neorg
|
||||
["core.defaults"] = {},
|
||||
-- Module responsible for enhancing the icons display in Neorg files
|
||||
["core.concealer"] = {
|
||||
-- Configuration for the "core.concealer" module
|
||||
config = {
|
||||
code_block = {
|
||||
conceal = true,
|
||||
padding = {
|
||||
left = 2
|
||||
}
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"folke/which-key.nvim",
|
||||
},
|
||||
init = function()
|
||||
-- Configure the key to use for keybinds used in the "core.keybinds" module
|
||||
vim.g.maplocalleader = ","
|
||||
end,
|
||||
config = function()
|
||||
require("neorg").setup({
|
||||
load = {
|
||||
-- Default module that imports the core modules necessary for Neorg
|
||||
["core.defaults"] = {},
|
||||
-- Module responsible for enhancing the icons display in Neorg files
|
||||
["core.concealer"] = {
|
||||
-- Configuration for the "core.concealer" module
|
||||
config = {
|
||||
-- Configure icons for concealed items
|
||||
icons = {
|
||||
code_block = {
|
||||
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
|
||||
heading = {
|
||||
-- List of icons to use for all headings levels from 1 to 6
|
||||
icons = {
|
||||
"◉",
|
||||
"◎",
|
||||
"○",
|
||||
"◉",
|
||||
"◎",
|
||||
"○",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
["core.dirman"] = {
|
||||
-- Configuration for "core.dirman" module
|
||||
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",
|
||||
},
|
||||
},
|
||||
-- Module for controling the ability to export Neorg files
|
||||
["core.export"] = {}
|
||||
},
|
||||
})
|
||||
},
|
||||
},
|
||||
["core.dirman"] = {
|
||||
-- Configuration for "core.dirman" module
|
||||
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",
|
||||
},
|
||||
},
|
||||
-- Module for controling the ability to export Neorg files
|
||||
["core.export"] = {}
|
||||
},
|
||||
})
|
||||
|
||||
require("which-key").register({
|
||||
["<leader>o"] = {
|
||||
name = "Neorg",
|
||||
i = {
|
||||
":Neorg index<CR>",
|
||||
"Index"
|
||||
require("which-key").register({
|
||||
["<leader>o"] = {
|
||||
name = "Neorg",
|
||||
i = {
|
||||
":Neorg index<CR>",
|
||||
"Index"
|
||||
},
|
||||
r = {
|
||||
":Neorg return<CR>",
|
||||
"Return"
|
||||
r = {
|
||||
":Neorg return<CR>",
|
||||
"Return"
|
||||
},
|
||||
w = {
|
||||
name = "Workspace",
|
||||
n = {
|
||||
":Neorg workspace notes",
|
||||
w = {
|
||||
name = "Workspace",
|
||||
n = {
|
||||
":Neorg workspace notes",
|
||||
"Notes"
|
||||
},
|
||||
d = {
|
||||
":Neorg workspace default",
|
||||
d = {
|
||||
":Neorg workspace default",
|
||||
"Default"
|
||||
}
|
||||
},
|
||||
p = {
|
||||
name = "Presenter",
|
||||
s = {
|
||||
":Neorg presenter start<CR>",
|
||||
"Start",
|
||||
},
|
||||
S = {
|
||||
":Neorg presenter stop<CR>",
|
||||
"Stop",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
p = {
|
||||
name = "Presenter",
|
||||
s = {
|
||||
":Neorg presenter start<CR>",
|
||||
"Start",
|
||||
},
|
||||
S = {
|
||||
":Neorg presenter stop<CR>",
|
||||
"Stop",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user