Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

feat(copmletion): Try to add Emmet LSP server completion support #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yebt
Copy link

@yebt yebt commented Jul 9, 2024

Hi.
I will try to make a solution for #16.
I apologize in advance for the inconvenience caused and if the code does not follow best practices.

With this patch i try to add the new behavior for the completion suggestions provided by emmet-lsp-server and the generated snippets for this server.

I tried to add the following behavior:

  • when the item is preselected caused by vim.opt.completeopt not contain the option noselect, the first item is selected, show the info
  • Add peview for the snippet

Before
image

After
image

  • Use the label for the word item to replace when change the items

Before
image

After
image

  • Expand items from emmet-lsp

Before
html:5 item generate:
image

a item generate:
image

ul>li*3 item generate:
image

After

html:5 item generate:
image

a item generate:
image

ul>li*3 item generate:
image

@glepnir
Copy link
Member

glepnir commented Jul 10, 2024

quick look is good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants