1

I'm using nvim-cmp for completion. The documentation only says that I can accept a suggestion using the following command:

cmp.mapping.confirm { select = true },

My problem with this that it expands function parameters, which I find distracting, and worse, it can screw up my editing if I exit insert mode. I want it to do one thing, which is to insert the name of the function and do not insert any parameters or closing parenthesis or anything. Is it even possible?

1 Answer 1

0

You need to look for in the settings of your lsp, it usually have that option. For example in my case, I use zls for zig:

lspconfig.zls.setup{
    settings = {
    zls = {
      enable_argument_placeholders = false,
    },
  },
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.