hrsh7th/nvim-compe

Selecting snippets with '\' at the beginning of the trigger word causes another extra '\' to be added.

moshiur-raj opened this issue · 2 comments

Checkhealth

Put result of :checkhealth compe.

health#compe#check
========================================================================
## compe:snippet
  - OK: snippet engine detected.

## compe:mapping
  - INFO: `compe#complete` is not mapped
  - INFO: `compe#confirm` is not mapped
  - OK: `compe#close` is mapped: (`i  <C-Y>       * compe#close('<C-Y>')`)
  - INFO: `compe#scroll` is not mapped

Describe the bug

I use ultisnips for snippets. I don't want snippets to trigger everytime I type 'begin" in a latex document. So I have '\begin' as the trigger. The problem is that when I select the completion compe adds another '' at the beginning. I haven't checked the bug with other special characters. Only '\' so far....

To Reproduce

  1. Create an ultisnips snippet with '\' at the beginning
  2. Open a latex document.
  3. Select the snippet from the popup menu.

Actual behavior

Compe add an extra '\' at the beginning.

Expected behavior

Compe should not add an extra '\'.

Screenshots (optional)

image

Before selecting...
image

After selecting...

I think I am having a similar issue with LSP completions
Setup
image
Completed
image

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.