-
Notifications
You must be signed in to change notification settings - Fork 8
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
Arbitrary element expansion (vs. emmet-ls) #19
Comments
Hi @kpko! Hmmm.. that's weird, I don't get completions for that (even triggering manually with ctrl + space in my setup). Can you double-check your LSP/cmp config? ![]() |
Did you get it working? 🤔 |
Hi, so my cmp configuration looks like this: local cmp = require'cmp'
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
mapping = cmp.mapping.preset.insert({
['<C-d>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }),
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
['<C-y>'] = cmp.config.disable,
['<C-e>'] = cmp.mapping({
i = cmp.mapping.abort(),
c = cmp.mapping.close(),
}),
['<CR>'] = cmp.mapping.confirm({ select = true }),
['<TAB>'] = cmp.mapping.confirm({ select = true })
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'nvim_lsp_signature_help' },
{ name = 'path' },
{ name = 'vsnip' }
}, {
{ name = 'buffer', keyword_length = 5 }
})
})
cmp.setup.cmdline('/', {
sources = {
{ name = 'buffer' }
}
}) My lsp configuration for emmet-language-server seems very basic via lspconfig: nvim_lsp.emmet_language_server.setup{
capabilities = capabilities
} But I'm using other language servers like gopls, rust_analyzer, tsserver, tailwindcss. Maybe one of them is producing this problem. |
Well, it works great now :) I will close the issue. Thanks for your time! I'm still not sure where the previous binary came from, though. That's weird. |
Hi!
I've tried emmet-language-server instead of emmet-ls, because I don't like that every word I write gets expanded into a tag, even though I have a close auto complete entry that would make more sense.
I've read here aca/emmet-ls#55 that this language server fixes that problem, but it seems to have the same behavior: I'm editing a .tsx file, write "asdf" and it gets expanded to "". Is there an option I didn't see?
The text was updated successfully, but these errors were encountered: