Skip to content

Commit 7bf35a3

Browse files
committed
nvim: disable cmp-cmdline for now
It was causing issues/confusion when coding chromium C++ code, list lots of ranfim symbols when starting to type new words, etc. Disable for now and investigate later. Signed-off-by: Nick Diego Yamane <nickdiego@igalia.com>
1 parent 10d2c14 commit 7bf35a3

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

config/nvim/lua/plugins.lua

+18-5
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,24 @@ return {
5858
{ 'neovim/nvim-lspconfig' },
5959

6060
-- completion
61-
{ 'hrsh7th/nvim-cmp' },
62-
{ 'hrsh7th/cmp-buffer' },
63-
{ 'hrsh7th/cmp-path' },
64-
{ 'hrsh7th/cmp-nvim-lsp' },
65-
{ 'hrsh7th/cmp-cmdline' },
61+
{ 'hrsh7th/nvim-cmp',
62+
dependencies = {
63+
'hrsh7th/cmp-buffer',
64+
'hrsh7th/cmp-path',
65+
'hrsh7th/cmp-nvim-lsp',
66+
-- cmp-cmdline leads to lots of random symbols when coding in
67+
-- C++ with clangd LSP. Disable for now.
68+
--'hrsh7th/cmp-cmdline',
69+
},
70+
config = function ()
71+
local cmp = require('cmp')
72+
cmp.setup({
73+
sources = cmp.config.sources({
74+
{ name = 'nvim_lsp' }
75+
})
76+
})
77+
end
78+
},
6679
{ 'L3MON4D3/LuaSnip' },
6780
{ 'saadparwaiz1/cmp_luasnip' },
6881
{ 'onsails/lspkind.nvim' },

0 commit comments

Comments
 (0)