feat(keymap): add keymap to format current buffer

This commit is contained in:
Sven Vogel 2024-11-08 18:21:12 +01:00
parent 840ac3d0cb
commit 252bfae0b0
1 changed files with 8 additions and 0 deletions

View File

@ -141,6 +141,14 @@ local keymaps = {
keys = '<C-S-tab>',
cmd = vim.cmd('BufferPrevious'),
desc = "Switch to the previous buffer"
},
{
mode = { 'n' },
keys = '<S-f>',
cmd = function()
vim.lsp.buf.format()
end,
desc = "Format buffer with current LSP"
}
}