diff options
-rw-r--r-- | lua/kickstart/plugins/conform.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/kickstart/plugins/conform.lua b/lua/kickstart/plugins/conform.lua index 82c48f5..c1e9534 100644 --- a/lua/kickstart/plugins/conform.lua +++ b/lua/kickstart/plugins/conform.lua @@ -1,6 +1,16 @@ return { { -- Autoformat 'stevearc/conform.nvim', + keys = { + { + '<leader>f', + function() + require('conform').format { async = true, lsp_fallback = true } + end, + mode = '', + desc = '[F]ormat buffer', + }, + }, opts = { notify_on_error = false, format_on_save = function(bufnr) |