diff --git a/.config/nvim/lua/plugins/conform.lua b/.config/nvim/lua/plugins/conform.lua index ec1bab1..82264b0 100644 --- a/.config/nvim/lua/plugins/conform.lua +++ b/.config/nvim/lua/plugins/conform.lua @@ -1,5 +1,18 @@ return { "stevearc/conform.nvim", + event = { "BufWritePre" }, + cmd = { "ConformInfo" }, + keys = { + { + "f", + + function() + require("conform").format({ async = true }) + end, + mode = "", + desc = "Format buffer", + }, + }, opts = { formatters_by_ft = { lua = { "stylua" },