From 824acf3878a62d3fb4fdebc5bc275fbf033659bb Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:57:06 +0100 Subject: [PATCH] more settings for the concealer --- .../nvim/lua/settings/lazy/plugins/neorg.lua | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/neorg.lua b/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/neorg.lua index 44f4ffc..d75e7f8 100644 --- a/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/neorg.lua +++ b/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/neorg.lua @@ -6,7 +6,35 @@ return { require("neorg").setup { load = { ["core.defaults"] = {}, - ["core.concealer"] = {}, + ["core.concealer"] = { + config = { + -- Configure icons for concealed items + icons = { + -- Configure code blocks icons behavior + code_blocks = { + -- Allow to conceal the "@code" and "@end" part of the code blocks + conceal = true, + -- Configure the padding for the code inside code blocks + padding = { + -- Add 2 spaces before the beginning of the code blocks + left = 2 + } + }, + -- Configure the headings + heading = { + -- List of icons to use for all headings levels from 1 to 6 + icons = { + "◉", + "◎", + "○", + "◉", + "◎", + "○" + } + } + } + } + }, ["core.keybinds"] = { config = { default_keybinds = false