From 5dd7b23adfade0170e967cb01e59fd872fb7c2b3 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 6 Jul 2024 02:06:24 +0200 Subject: [PATCH] format lines fl --- lua/custom/maps/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index 4789429..fe25ae3 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -101,6 +101,9 @@ vim.keymap.set({ 'n', 'v' }, '', ' move+2', { desc = 'Move line d vim.keymap.set({ 'n', 'v' }, '', '<<', { desc = 'Less indentation' }) vim.keymap.set({ 'n', 'v' }, '', '>>', { desc = 'More indentation' }) +-- format a long line into multiple with length 80 +vim.keymap.set({ 'v' }, 'fl', ':!fmt -w80', { desc = '[F]ormat long [L]ines into smaller ones' }) + -------------------------------------------------------------------------------- -- Formating --------------------------------------------------------------------------------