fix(format): ignore vim.b.autoformat when formatting using key bindings. Fixes #575

This commit is contained in:
Folke Lemaitre 2023-04-16 10:47:36 +02:00
parent a099b2d3ab
commit bef36bb2fd
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 6 additions and 3 deletions

View file

@ -5,7 +5,9 @@ M._keys = nil
---@return (LazyKeys|{has?:string})[]
function M.get()
local format = require("lazyvim.plugins.lsp.format").format
local format = function()
require("lazyvim.plugins.lsp.format").format({ force = true })
end
if not M._keys then
---@class PluginLspKeys
-- stylua: ignore