diff --git a/lua/config/utils.lua b/lua/config/utils.lua index d4416c8..732e608 100644 --- a/lua/config/utils.lua +++ b/lua/config/utils.lua @@ -250,7 +250,7 @@ function M.on_attach(client, bufnr) local ft = vim.api.nvim_buf_get_option(bufnr, 'filetype') local enable = false - if has_formatter then + if has_formatter and not client.name == 'clangd' then enable = client.name == 'null-ls' else enable = not (client.name == 'null-ls')