diff --git a/config/plugins/neorg.nix b/config/plugins/neorg.nix index 100fb54..2cdb78f 100644 --- a/config/plugins/neorg.nix +++ b/config/plugins/neorg.nix @@ -32,57 +32,57 @@ default_workspace = "m"; }; }; - "core.keybinds" = { - config = { - hook = { - __raw = ''function(keybinds) - -- unmap Alt-Enter to "core.itero.next-iteration", "" - keybinds.unmap("norg", "i", "") - -- map Shift-Enter to "core.itero.next-iteration", "" - keybinds.remap_event("norg", "i", "", "core.itero.next-iteration", "") - end; - ''; - }; - }; - }; +# "core.keybinds" = { +# config = { +# hook = { +# __raw = ''function(keybinds) +# -- unmap Alt-Enter to "core.itero.next-iteration", "" +# keybinds.unmap("norg", "i", "") +# -- map Shift-Enter to "core.itero.next-iteration", "" +# keybinds.remap_event("norg", "i", "", "core.itero.next-iteration", "") +# end; +# ''; +# }; +# }; +# }; }; }; }; - extraConfigLua = '' - ---------------------------------------------------- - -- START Neorg config - ---------------------------------------------------- - -- vim.api.nvim_create_autocmd({'BufEnter', 'BufWinEnter'}, { - -- pattern = '*.norg', - vim.api.nvim_create_autocmd('FileType', { - pattern = 'norg', - callback = function() - vim.opt.formatoptions:remove('r') - vim.opt.formatoptions:remove('o') - - -- https://github.com/nvim-neorg/neorg/discussions/1066 - vim.opt.conceallevel = 2 - vim.keymap.set( 'n', 'Nt', function() - if vim.opt.conceallevel:get() == 2 then - vim.opt.conceallevel = 0 - elseif vim.opt.conceallevel:get() == 0 then - vim.opt.conceallevel = 2 - end - vim.cmd('Neorg toggle-concealer') - end, { desc = 'Neorg toggle-concealer and conceallevel' }) - -- use this insteand: ['core.concealer'] = { config = { folds = false }, }, - -- vim.opt.foldlevelstart = 99 - vim.keymap.set( 'n', 'Ng', function() vim.cmd.Neorg('generate-workspace-summary') end, { desc = 'generate-workspace-summary' }) - vim.keymap.set( 'n', 'NT', function() vim.cmd.Neorg('toc') end, { desc = 'Table of Content' }) - end, - }) - vim.keymap.set( 'n', 'Nw', function() vim.api.nvim_feedkeys(':Neorg workspace ', 'n', true) end, { desc = 'Neorg workspace ' }) - vim.keymap.set( 'n', 'Ni', function() vim.cmd('Neorg index') end, { desc = 'Neorg index' }) - vim.keymap.set( 'n', 'Nr', function() vim.cmd('Neorg return') end, { desc = 'Neorg return' }) - vim.keymap.set( 'n', 'Ne', function() vim.cmd('Neorg workspace e') end, { desc = 'Neorg workspace e (neorg-english)' }) - ---------------------------------------------------- - -- END Neorg config - ---------------------------------------------------- - ''; +# extraConfigLua = '' +# ---------------------------------------------------- +# -- START Neorg config +# ---------------------------------------------------- +# -- vim.api.nvim_create_autocmd({'BufEnter', 'BufWinEnter'}, { +# -- pattern = '*.norg', +# vim.api.nvim_create_autocmd('FileType', { +# pattern = 'norg', +# callback = function() +# vim.opt.formatoptions:remove('r') +# vim.opt.formatoptions:remove('o') +# +# -- https://github.com/nvim-neorg/neorg/discussions/1066 +# vim.opt.conceallevel = 2 +# vim.keymap.set( 'n', 'Nt', function() +# if vim.opt.conceallevel:get() == 2 then +# vim.opt.conceallevel = 0 +# elseif vim.opt.conceallevel:get() == 0 then +# vim.opt.conceallevel = 2 +# end +# vim.cmd('Neorg toggle-concealer') +# end, { desc = 'Neorg toggle-concealer and conceallevel' }) +# -- use this insteand: ['core.concealer'] = { config = { folds = false }, }, +# -- vim.opt.foldlevelstart = 99 +# vim.keymap.set( 'n', 'Ng', function() vim.cmd.Neorg('generate-workspace-summary') end, { desc = 'generate-workspace-summary' }) +# vim.keymap.set( 'n', 'NT', function() vim.cmd.Neorg('toc') end, { desc = 'Table of Content' }) +# end, +# }) +# vim.keymap.set( 'n', 'Nw', function() vim.api.nvim_feedkeys(':Neorg workspace ', 'n', true) end, { desc = 'Neorg workspace ' }) +# vim.keymap.set( 'n', 'Ni', function() vim.cmd('Neorg index') end, { desc = 'Neorg index' }) +# vim.keymap.set( 'n', 'Nr', function() vim.cmd('Neorg return') end, { desc = 'Neorg return' }) +# vim.keymap.set( 'n', 'Ne', function() vim.cmd('Neorg workspace e') end, { desc = 'Neorg workspace e (neorg-english)' }) +# ---------------------------------------------------- +# -- END Neorg config +# ---------------------------------------------------- +# ''; }