hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
8.01k stars 398 forks source link

Feature request: ignore first character `$` for some languages #1678

Open codepuncher opened 1 year ago

codepuncher commented 1 year ago

In PHP, a variable is defined with a leading $ (e.g. $foo = 'bar').

In the PHPStorm IDE, it will provide autocomplete for this variable without typing the leading $. This is very useful.

How can this be achieved with nvim-cmp?

$foo = 'foo';
$bar = 'bar';

f // expect this to show `$foo` autocomplete variable suggestion

Thanks

tom-schmitz commented 6 months ago

@codepuncher did you by any chance find a solution for this?

codepuncher commented 6 months ago

Nope sorry!