I have added some .sublime-completions file and put jQuery and JS functions and stuff there.
Completions works greate! But now I am facing another, worse problem:
Autocomplete box shows me local variables (words from buffer) only after there is no more matches for completions from .sublime-completions file ?!
As can be seen from screenshot:
I have 3 variables starting with word new, but since I have 2 matches from my completions file, those gets completely ignored… I get local variables in autocomplete box only after I write ‘newp’ that doesn’t match any word from file.
I know that words from buffer has lowest priority for autocomplete. It doesn’t make sense to me but I could live with it. But I thought that I would still get my local variables at the end of autocompletions list. So in the example above it should be:
‘new’ - autocompletions: ‘new’, ‘innerWidth()’, ‘newPageCloseModal’, ‘newPageRedirectToEdit’,…
My questions:
- How to achieve that ‘words from buffer’ are always at the end of my autocompletions list?
- How to set ‘words from buffer’ to have highest priority in autocompletion
Any help would be greatly appreciated! I am completely lost…
Thank you very much!