-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Labels
enhancementNew feature or requestNew feature or request
Description
So I probably hate myself more than most people and want to use <Tab>
for completions :)
But I'm trying to dynamically check if the first (few?) characters of a suggestion are \t
, in which case I'll simply passthrough the Tab key. I am sort of able to do this right now with suggestion.accept(<function>)
, but I think it'd be a quick and user friendly addition to either provide a method to get the first (n
?) chars of a suggestion, or take in a string and match it against its text. E.g.:
local first_5 = suggestion.get_n_chars(5)
-- or
local starts_with_tab = suggestion.startswith('\t')
Anyway, cheers for the amazing plugin!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request