cmp-emoji
cmp-emoji copied to clipboard
Does not suggest completions inside lua strings
Given this file.lua
local str = ':smi
-- ^ cursor
EXPECTED: cmp menu open with 😄 emoji selected ACTUAL: no cmp menu
PR welcome :)
my initial thought was that, for certain filetypes, cmp-emoji should use treesitter to find out if we're in a string
I think it does not have anything to do with strings per se, but rather that there needs to be a space before the colon:
":smi| " -- this does not trigger emoji completions
" :smi| " -- this does
The problem seems to be that without the space, :
is the required trigger character for cmp-emoji, but ":
does not trigger it