From e049f35edaa5c06fcd0ade03c0d6ad8dec5c8943 Mon Sep 17 00:00:00 2001 From: Mark <17348049+sockcrates@users.noreply.github.com> Date: Wed, 27 Dec 2023 16:08:44 -0500 Subject: [PATCH] Use which-key and "f" to format --- lua/custom/plugins/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 8464f6c5..5685946a 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -3,10 +3,12 @@ -- -- See the kickstart.nvim README for more information -vim.opt.colorcolumn = "80,100" +vim.opt.colorcolumn = '80,100' vim.opt.number = true vim.opt.relativenumber = true -vim.api.nvim_set_keymap('n', 'cf', ':EslintFixAll:Neoformat', { noremap = true, silent = true }) +require('which-key').register({ + f = { ':Neoformat:EslintFixAll', 'Prettier then eslint' } +}, { prefix = 'c' }) return {}