hrsh7th / cmp-path

nvim-cmp source for path
MIT License
627 stars 60 forks source link

Completion is broken when using curly braces in shell scripts #57

Open hermitmaster opened 2 years ago

hermitmaster commented 2 years ago

Completion is broken when using curly braces in shell scripts. export XDG_CONFIG_HOME="${HOME}/" for example, offers completions from the root of the filesystem. If I remove the curly braces, it works as expected.

ediw8311xht commented 3 months ago

Yeah, this is very annoying and goes against shellcheck standard of using curly braces with variables.

See Shellcheck SC2250:

Prefer putting braces around variable references even when not strictly required.

Working on making a pull request, but I don't know Lua at all, so it may be a bit.