Fix settings Neorg

This commit is contained in:
Archie Fox
2025-08-15 14:00:44 +03:00
parent af607b992e
commit 9a59b7bff5
2 changed files with 15 additions and 10 deletions

View File

@@ -55,15 +55,13 @@ k.set("v", "<A-k>", ":m '<-2<CR>gv=gv", { desc = "Move selection up" })
k.set("v", "<", "<gv", { desc = "Indent left and reselect" }) k.set("v", "<", "<gv", { desc = "Indent left and reselect" })
k.set("v", ">", ">gv", { desc = "Indent right and reselect" }) k.set("v", ">", ">gv", { desc = "Indent right and reselect" })
vim.keymap.set("n", "gg", function() -- Keys for Neorg
vim.api.nvim_win_set_cursor(0, { 1, 0 })
end, { desc = "Go to first line" })
vim.keymap.set("n", "G", function()
local line_count = vim.api.nvim_buf_line_count(0)
vim.api.nvim_win_set_cursor(0, { line_count, 0 })
end, { desc = "Go to last line" })
k.set("n", "\\<Space>", "<Plug>(neorg.qol.todo-items.todo.task-cycle)", { desc = "Cycle done-undone task in Neorg" })
k.set("n", "\\jt", ":Neorg journal today<CR>", { desc = "Create Neorg Journal note today" }) k.set("n", "\\jt", ":Neorg journal today<CR>", { desc = "Create Neorg Journal note today" })
k.set("n", "\\jc", ":Neorg journal custom<CR>", { desc = "Create Neorg Journal note custom" }) k.set("n", "\\jc", ":Neorg journal custom<CR>", { desc = "Create Neorg Journal note custom" })
k.set("n", "\\<Space>", "<Plug>(neorg.qol.todo-items.todo.task-cycle)", { desc = "Cycle done-undone task in Neorg" })
vim.api.nvim_create_autocmd("Filetype", {
pattern = "norg",
callback = function()
vim.keymap.set("n", "<CR>", "<Plug>(neorg.esupports.hop.hop-link)", { buffer = true })
end,
})

View File

@@ -29,6 +29,13 @@ return {
create_todo_parents = true, create_todo_parents = true,
}, },
}, },
["core.qol.toc"] = {
config = {
auto_toc = {
open = true,
},
},
},
}, },
}) })
end, end,