feat: added keymap for formatting code
This commit is contained in:
parent
de4d3fce0c
commit
2c3aff429c
1 changed files with 11 additions and 0 deletions
|
|
@ -1,6 +1,17 @@
|
|||
return {
|
||||
'stevearc/conform.nvim',
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
cmd = { 'ConformInfo' },
|
||||
keys = {
|
||||
{
|
||||
'<leader>cf',
|
||||
function()
|
||||
require('conform').format { async = true, lsp_format = 'fallback' }
|
||||
end,
|
||||
mode = '',
|
||||
desc = '[C]ode [F]ormat',
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local conform = require 'conform'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue