Closed ghost closed 2 years ago
Probably bug in cssmodules.
To keep this functionality enabled everywhere, apart from when using cssmodules_ls
I've changed this:
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
To this:
cmp.event:on('confirm_done', function(arg)
local client_name = nil
if type(arg) == "table" then
client_name = arg.entry.source.source.client.name
end
if (client_name ~= "cssmodules_ls") then
local handler = cmp_autopairs.on_confirm_done({
map_char = {
tex = ''
}
})
handler(arg)
end
end)
Description
This bug due to
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
when trying to complete text with enter for cssmodules_ls. Neovim 0.6.1.Mapping bug
No response
Steps to reproduce
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
is set.['<CR>'] = cmp.mapping.confirm({ select = true })
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
from settings - no error anymore. But this setting is convenient, i don't want to remove it.Minimal config