codeActionProvider check

pull/249/head
ray-x 1 year ago
parent bd3dfe2ee2
commit 922a4264d8

@ -73,7 +73,7 @@ M.on_attach = function(client, bufnr)
end
if _NgConfigValues.lsp.code_action.enable then
if client.server_capabilities.codeLensProvider and client.name ~= 'null-ls' then
if client.server_capabilities.codeActionProvider and client.name ~= 'null-ls' then
log('code action enabled for client', client.server_capabilities.codeActionProvider)
api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
group = api.nvim_create_augroup('NGCodeActGroup_' .. tostring(bufnr), {}),

Loading…
Cancel
Save