chore(nvim): remove auto-formatting
This commit is contained in:
parent
351c4d7814
commit
14b6d80507
|
@ -19,19 +19,6 @@ local diagnostics = null_ls.builtins.diagnostics
|
||||||
local formatting = null_ls.builtins.formatting
|
local formatting = null_ls.builtins.formatting
|
||||||
|
|
||||||
null_ls.setup {
|
null_ls.setup {
|
||||||
on_attach = function(client, bufnr)
|
|
||||||
if client.supports_method "textDocument/formatting" then
|
|
||||||
vim.api.nvim_clear_autocmds { group = augroup, buffer = bufnr }
|
|
||||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
|
||||||
buffer = bufnr,
|
|
||||||
callback = function()
|
|
||||||
lsp_formatting(bufnr)
|
|
||||||
end,
|
|
||||||
group = augroup,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
formatting.phpcbf,
|
formatting.phpcbf,
|
||||||
formatting.markdownlint,
|
formatting.markdownlint,
|
||||||
|
|
Loading…
Reference in a new issue