bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

neovim use bash-language-server but function auto add "()"

Open wutianjun5858 opened this issue 2 years ago • 3 comments

Code editor

neovim

Platform

manjaro

Version

5.0.0

What steps will reproduce the bug?

touch test.sh

nvim test.sh

#!/bin/bash

function test() {
  echo "just for test"
}

test # this place auto add () like "test()"

How often does it reproduce? Is there a required condition?

always

What is the expected behavior?

shell script function do not auto add ()

What do you see instead?

I see test() but I expected test

Additional information

No response

wutianjun5858 avatar Oct 11 '23 07:10 wutianjun5858

Do you use nvim-autopairs and nvim-cmp?

LeonardoMor avatar Feb 09 '24 04:02 LeonardoMor

Do you use nvim-autopairs and nvim-cmp?

yes

wutianjun5858 avatar Mar 11 '24 08:03 wutianjun5858

Do you use nvim-autopairs and nvim-cmp?

yes

This has been fixed in 1efb4f2 so all you have to do is update nvim-autopairs.

Thus, I think this issue can be closed.

LeonardoMor avatar Mar 11 '24 22:03 LeonardoMor