mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(format): eslint should respect autoformat (#897)
This commit is contained in:
parent
0731f08ee4
commit
2ec4da7fa5
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue