From 0d4e65f9619bf1904f001201de85d34d7f52361f Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 23 Jan 2025 19:35:06 -0500 Subject: [PATCH] AutoYADM commit: 2025-01-23 19:35:06 --- .config/nvim/after/ftplugin/org.lua | 20 ++++++++++++++++---- .config/nvim/lua/plugins/orgmode.lua | 4 +++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.config/nvim/after/ftplugin/org.lua b/.config/nvim/after/ftplugin/org.lua index 71ed1de4..fc5a483a 100644 --- a/.config/nvim/after/ftplugin/org.lua +++ b/.config/nvim/after/ftplugin/org.lua @@ -38,16 +38,28 @@ local override = true if override then vim.keymap.set("n", "}", function() modmap("notsame", "next") - end) + end, { + silent = true, + buffer = true, + }) vim.keymap.set({ "n", "x" }, "{", function() modmap("notsame", "previous") - end) + end, { + silent = true, + buffer = true, + }) vim.keymap.set({ "n", "x" }, "[[", function() modmap("same", "previous") - end) + end, { + silent = true, + buffer = true, + }) vim.keymap.set({ "n", "x" }, "]]", function() modmap("same", "next") - end) + end, { + silent = true, + buffer = true, + }) end -- vim.api.nvim_create_autocmd({ "CursorMoved" }, { -- buffer = 0, diff --git a/.config/nvim/lua/plugins/orgmode.lua b/.config/nvim/lua/plugins/orgmode.lua index fd4da865..584cc933 100644 --- a/.config/nvim/lua/plugins/orgmode.lua +++ b/.config/nvim/lua/plugins/orgmode.lua @@ -22,7 +22,9 @@ return { org_timestamp_up = "", org_return = false, org_next_visible_heading = false, - org_previous_visible_heading = true, + org_previous_visible_heading = false, + org_forward_heading_same_level = false, + org_backward_heading_same_level = false, }, }, }