Adding <CR> completion setting? #181
-
Hi there
Can I still use manage_nvim_cmp and have this? My current setup local lsp = require('lsp-zero').preset {
manage_nvim_cmp = {
set_sources = 'recommended',
},
}
lsp.on_attach(function(client, bufnr)
lsp.default_keymaps { buffer = bufnr }
end)
-- (Optional) Configure lua language server for neovim
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
require('lspconfig').eslint.setup {}
lsp.setup() |
Beta Was this translation helpful? Give feedback.
Answered by
VonHeikemen
Mar 14, 2023
Replies: 1 comment 1 reply
-
Yeah. You can just add it using the local cmp = require('cmp')
cmp.setup({
mapping = {
['<CR>'] = cmp.mapping.confirm({ select = true }),
}
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cmdcolin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah. You can just add it using the
cmp
module. This should work.