elken / yasnippet-capf

Completion-At-Point Extension for YASnippet
GNU General Public License v3.0
40 stars 9 forks source link

feat: use built-in completion helpers and refactor #10

Closed LuigiPiucco closed 1 year ago

LuigiPiucco commented 1 year ago

completion-table-with-cache does both caching and filtering given a (full) list of candidates. Using it instead of custom logic based on complete-with-action simplifies the code and allows refactoring the template acquisition to only get all completions for point, without having to pre-filter every time with string-prefix-p.