diff --git a/lua/config/keys.lua b/lua/config/keys.lua index f081cbb..63cc455 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -141,6 +141,14 @@ local keymaps = { keys = '', cmd = vim.cmd('BufferPrevious'), desc = "Switch to the previous buffer" + }, + { + mode = { 'n' }, + keys = '', + cmd = function() + vim.lsp.buf.format() + end, + desc = "Format buffer with current LSP" } }