nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

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

Open codepuncher opened this issue 2 years ago • 2 comments

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

codepuncher avatar Aug 14 '23 08:08 codepuncher

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

tom-schmitz avatar Apr 25 '24 08:04 tom-schmitz

Nope sorry!

codepuncher avatar Apr 25 '24 08:04 codepuncher