From b719c4d2ac3bfd44d58d224d763188148e88466d Mon Sep 17 00:00:00 2001 From: Simo Soini Date: Thu, 5 Jun 2025 16:37:38 +0300 Subject: [PATCH] Add neorg plugin --- lua/custom/plugins/init.lua | 26 ++++++++++++++++++++++++++ lua/kickstart/plugins/autopairs.lua | 1 + 2 files changed, 27 insertions(+) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 0696ffa5..2c178285 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -48,6 +48,32 @@ return { end, }, + { + 'nvim-neorg/neorg', + lazy = false, + version = '*', + config = function() + require('neorg').setup { + load = { + ['core.defaults'] = {}, + ['core.concealer'] = {}, + ['core.dirman'] = { + config = { + workspaces = { + notes = '~/notes', + }, + default_workspace = 'notes', + }, + }, + ['core.summary'] = {}, + }, + } + + vim.wo.foldlevel = 99 + vim.wo.conceallevel = 2 + end, + }, + -- INFO: Previously used, now disabled plugins -- Navigation integration for tmux diff --git a/lua/kickstart/plugins/autopairs.lua b/lua/kickstart/plugins/autopairs.lua index 9a97cce7..a4772591 100644 --- a/lua/kickstart/plugins/autopairs.lua +++ b/lua/kickstart/plugins/autopairs.lua @@ -27,6 +27,7 @@ return { rule2('{', '%', '}', 'html') rule2('{%', ' ', '%}', 'html') + rule2('{', ':', '}', 'norg') rule2('(', ' ', ')') rule2('[', ' ', ']') rule2('{', ' ', '}')