feat(keymap): add keymap to format current buffer
This commit is contained in:
parent
840ac3d0cb
commit
252bfae0b0
|
@ -141,6 +141,14 @@ local keymaps = {
|
||||||
keys = '<C-S-tab>',
|
keys = '<C-S-tab>',
|
||||||
cmd = vim.cmd('BufferPrevious'),
|
cmd = vim.cmd('BufferPrevious'),
|
||||||
desc = "Switch to the previous buffer"
|
desc = "Switch to the previous buffer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
mode = { 'n' },
|
||||||
|
keys = '<S-f>',
|
||||||
|
cmd = function()
|
||||||
|
vim.lsp.buf.format()
|
||||||
|
end,
|
||||||
|
desc = "Format buffer with current LSP"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue