fix(format): eslint should respect autoformat (#897)

This commit is contained in:
Mike Duminy 2023-06-08 07:48:34 +02:00 committed by GitHub
parent 0731f08ee4
commit 2ec4da7fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -5,6 +5,10 @@ local M = {}
---@type PluginLspOpts
M.opts = nil
function M.enabled()
return M.opts.autoformat
end
function M.toggle()
if vim.b.autoformat == false then
vim.b.autoformat = nil