From 7ddeeb07b509e6e9a925e9c1c0b707ab4f26ae7e Mon Sep 17 00:00:00 2001 From: fiplox Date: Thu, 20 Apr 2023 14:50:25 +0200 Subject: [PATCH] fix: do not enable null-ls on clangd --- lua/config/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')