FormatEnable and FormatDisable now actually works
This commit is contained in:
parent
b19f90dc7f
commit
2ac26b8d7a
|
@ -35,9 +35,12 @@ return {
|
||||||
-- ["*"] = { "codespell" },
|
-- ["*"] = { "codespell" },
|
||||||
["_"] = { "trim_whitespace", "trim_newlines" },
|
["_"] = { "trim_whitespace", "trim_newlines" },
|
||||||
},
|
},
|
||||||
format_after_save = {
|
format_after_save = function(bufnr)
|
||||||
lsp_fallback = true,
|
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||||
},
|
return
|
||||||
|
end
|
||||||
|
return { lsp_fallback = true }
|
||||||
|
end,
|
||||||
notify_on_error = true,
|
notify_on_error = true,
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user