From 84fc1601c572ce10fada687d7bbae068ccd537b6 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 17 Mar 2023 16:53:19 +0000 Subject: [PATCH] home: vim: 'unimpaired' mappings for formatting I'll migrate to calling the lua API directly if they stop expecting a non-nil argument. --- home/vim/after/plugin/mappings/unimpaired.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/vim/after/plugin/mappings/unimpaired.vim b/home/vim/after/plugin/mappings/unimpaired.vim index 069adb0..12029cc 100644 --- a/home/vim/after/plugin/mappings/unimpaired.vim +++ b/home/vim/after/plugin/mappings/unimpaired.vim @@ -70,6 +70,7 @@ local keys = { b = "Light background", c = "Cursor line", d = "Diff", + f = { "FormatEnable", "LSP Formatting" }, h = "Search high-lighting", i = "Case insensitive search", l = "List mode", @@ -88,6 +89,7 @@ local keys = { b = "Light background", c = "Cursor line", d = "Diff", + f = { "FormatDisable", "LSP Formatting" }, h = "Search high-lighting", i = "Case insensitive search", l = "List mode", @@ -106,6 +108,7 @@ local keys = { b = "Light background", c = "Cursor line", d = "Diff", + f = { "FormatToggle", "LSP Formatting" }, h = "Search high-lighting", i = "Case insensitive search", l = "List mode",