-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trigger expansion on Tab
#1
Comments
Very happily |
@olrtg I found a way to configure it based on the existing ['<tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.mapping.confirm({ select = true })()
elseif has_words_before() then
cmp.mapping.complete({
config = {
sources = {
{
name = 'nvim_lsp',
entry_filter = function(entry)
return entry.source:get_debug_name() == 'nvim_lsp:emmet_language_server'
end,
},
},
},
})()
cmp.mapping.confirm({ select = true })()
else
fallback()
end
end),
But sadly emmet_language_server non-standard HTML tags (e.g. custom view tags) are not supported |
Hey @kola-web! Yeah that's a problem even in vscode too.. What I was thinking is maybe you can just wrap everything that you're typing inside of a tag (for example And we can't really offer completion for whatever since it'll pollute the cmp results. See aca/emmet-ls#55. |
Got it, thank you for your answer |
No worries! If you have some implementation maybe you can hang it out here for other people that may need this feature. I'm currently using vim-surround to wrap with tags. |
Moving here olrtg/emmet-language-server#28.
@kola-web we can continue here if you want.
The text was updated successfully, but these errors were encountered: