From 4c6234419e2634496215bd31d549962849a5c342 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 13 Nov 2024 03:24:34 -0600 Subject: [PATCH] feat(nvim): add key to toggle org indent mode --- users/price/dots/.config/nvim/after/ftplugin/org.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/users/price/dots/.config/nvim/after/ftplugin/org.lua b/users/price/dots/.config/nvim/after/ftplugin/org.lua index f6b55035..54287a1e 100644 --- a/users/price/dots/.config/nvim/after/ftplugin/org.lua +++ b/users/price/dots/.config/nvim/after/ftplugin/org.lua @@ -1,2 +1,8 @@ vim.opt_local.shiftwidth = 2 vim.opt_local.modeline = true +vim.keymap.set("n", "ff", function() + vim.b.org_indent_mode = not vim.b.org_indent_mode +end, { + buffer = true, + desc = "Org: Toggle Indent Mode", +})