This commit is contained in:
Nikos Papadakis 2023-09-30 16:40:43 +03:00
parent 1ec4450dbc
commit 0e8da32f50
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02

View file

@ -57,15 +57,19 @@ local on_attach = function(client, bufnr)
callback = vim.lsp.buf.document_highlight,
buffer = bufnr,
})
end
if client.server_capabilities.signatureHelp then
vim.api.nvim_create_autocmd({ "CursorHoldI" }, {
callback = vim.lsp.buf.signature_help,
buffer = bufnr,
})
end
vim.api.nvim_create_autocmd({ "CursorMoved" }, {
callback = vim.lsp.buf.clear_references,
buffer = bufnr,
})
end
if has_lsp_format then
lsp_format.on_attach(client)