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 --------------------------------------------------------------------------------