hrsh7th / cmp-path

nvim-cmp source for path
MIT License
599 stars 55 forks source link

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

Open hermitmaster opened 1 year ago

hermitmaster commented 1 year 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 1 month 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.