hrsh7th / cmp-cmdline

nvim-cmp source for vim's cmdline
MIT License
505 stars 41 forks source link

Cmdline don't work and don't give completion #30

Closed melsiir closed 2 years ago

melsiir commented 2 years ago

I tried to install cmdline but it just don't give any suggestions or completion

Here is my config using packer :

use({ "hrsh7th/cmp-cmdline", config = "require('custom.plugins.cmdline')", })

The cmdline config :

require'cmp'.setup.cmdline(':', { sources = { { name = 'cmdline' } } })

hrsh7th commented 2 years ago

Did you install nvim-cmp itself?

melsiir commented 2 years ago

It working now

melsiir commented 2 years ago

First It work fine but now I am getting this weird long error and all my plugins get disabled

Error in packer_compiled: ...x/files/home/.config/ nvim/lua/custom/plugins/cmdline.lua:1: module 'cmp' not found:^@^Ino field package.preload['cmp']^@^ Ino file './cmp.lua'^@^Ino file '/data/data/com.termux/files/usr/share/luajit-2.1.0-beta3/cmp.lua'^@^Ino file '/usr/local/share/lua/5.1/cmp.lua'^@^Ino file '/usr/local/share/lua/5.1/cmp/init.lua'^@^Ino file '/data/data/com.termux/files/usr/share/lua/ 5.1/cmp.lua'^@^Ino file '/data/data/com.termux/files/usr/share/lua/5.1/cmp/init.lua'^@^Ino file '/data/data/com.termux/files/home/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp.lua'^@^Ino file '/data/data/com.termux/files/home/.cache/nvim /packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp/in it.lua'^@^Ino file '/data/data/com.termux/files/home/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lu arocks/rocks-5.1/cmp.lua'^@^Ino file

melsiir commented 2 years ago

My cmp plugin is lazy loaded after other plugin so when they are not loaded I got the error above