manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.36k stars 197 forks source link

Add support for "tempel-trigger-prefix" #917

Closed rennsax closed 2 months ago

rennsax commented 2 months ago

The variable tempel-trigger-prefix controls which prefix need to be input first before the completion can recognize it. For example, if there is a snippet "header" returned by tempel--templates, with tempel-trigger-prefix set to "t", "theader" will then expand to the snippet body.

This variable should be respected by ACM too.

The effects:

With prefix set, no tempel completion options show up:

image

If the prefix is entered, tempel snippets can be matched:

image

TAB, the completion expands:

image

manateelazycat commented 2 months ago

thanks