Skip to content
Discussion options

You must be logged in to vote

I think nvim-cmp will merge the old config with the new config, so the config from lsp-zero should be merge with yours. But I'm not sure.

Since you have a lot of customizations I would recommend changing the preset to lsp-compe and use .defaults.cmp_config to extend the defaults.

local lsp = require('lsp-zero')
lsp.preset('lsp-compe')

lsp.setup()

vim.opt.completeopt = {'menu', 'menuone', 'noselect'}

local cmp = require('cmp')
local cmp_config = lsp.defaults.cmp_config({
  ---
  --  Add your nvim-cmp config here
  ---
})

cmp.setup(cmp_config)

--- more code .....

also, a bonus question, I was super impressed by the linter-suggestions in my R-scripts. However, the linter wants me to us…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@emilBeBri
Comment options

Answer selected by emilBeBri
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants