Use which-key and "f" to format
This commit is contained in:
parent
201c8d9da6
commit
e049f35eda
|
@ -3,10 +3,12 @@
|
||||||
--
|
--
|
||||||
-- See the kickstart.nvim README for more information
|
-- See the kickstart.nvim README for more information
|
||||||
|
|
||||||
vim.opt.colorcolumn = "80,100"
|
vim.opt.colorcolumn = '80,100'
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
vim.api.nvim_set_keymap('n', '<leader>cf', ':EslintFixAll<CR>:Neoformat<CR>', { noremap = true, silent = true })
|
require('which-key').register({
|
||||||
|
f = { ':Neoformat<CR>:EslintFixAll<CR>', 'Prettier then eslint' }
|
||||||
|
}, { prefix = '<leader>c' })
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Reference in New Issue