fix: do not enable null-ls on clangd
This commit is contained in:
parent
83dea5d4ee
commit
7ddeeb07b5
@ -250,7 +250,7 @@ function M.on_attach(client, bufnr)
|
|||||||
local ft = vim.api.nvim_buf_get_option(bufnr, 'filetype')
|
local ft = vim.api.nvim_buf_get_option(bufnr, 'filetype')
|
||||||
|
|
||||||
local enable = false
|
local enable = false
|
||||||
if has_formatter then
|
if has_formatter and not client.name == 'clangd' then
|
||||||
enable = client.name == 'null-ls'
|
enable = client.name == 'null-ls'
|
||||||
else
|
else
|
||||||
enable = not (client.name == 'null-ls')
|
enable = not (client.name == 'null-ls')
|
||||||
|
Loading…
Reference in New Issue
Block a user