From 14b6d80507054c5070048e6febb259119722ccbe Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 1 Sep 2022 18:50:32 +0100 Subject: [PATCH] chore(nvim): remove auto-formatting --- roles/neovim/files/lua/opdavies/lsp/null-ls.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/roles/neovim/files/lua/opdavies/lsp/null-ls.lua b/roles/neovim/files/lua/opdavies/lsp/null-ls.lua index d6d89c6..5fc1c0e 100644 --- a/roles/neovim/files/lua/opdavies/lsp/null-ls.lua +++ b/roles/neovim/files/lua/opdavies/lsp/null-ls.lua @@ -19,19 +19,6 @@ local diagnostics = null_ls.builtins.diagnostics local formatting = null_ls.builtins.formatting 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 = { formatting.phpcbf, formatting.markdownlint,