Closed anstadnik closed 3 years ago
I've seen #13, and tried to remove ray-x/lsp_signature.nvim. Didn't help
Hmm, for this, try clang as it works on clang -
local clangd_flags = {
"--background-index",
"--cross-file-rename",
"--clang-tidy-checks=clang-diagnostic-*,clang-analyzer-*,-*,bugprone*,modernize*,performance*,-modernize-pass-by-value,-modernize-use-auto,-modernize-use-using,-modernize-use-trailing-return-type",
}
lspconfig.clangd.setup({
cmd = { "clangd", unpack(clangd_flags) },
on_attach = enhance_attach,
capabilities = capabilities,
})
as it expands and jumps over etc, see if that works :)
Some LSPs can create snippets for functions, methods etc. One of such LSP is ccls. For example, when I enter the following cpp code:
, and I put the cursor at the end of the first line in the
main
function, the LSP would suggest me a snippet for functionint_and_char
, but it is not being expanded.