noib3 / nvim-completion

:zap: An async autocompletion framework for Neovim
MIT License
503 stars 13 forks source link

Not working on ubuntu 20.04 #2

Closed zjp-CN closed 2 years ago

zjp-CN commented 2 years ago

Thank you for the pure Rust plugin for nvim! But this plugin doesn't run on my computer. I use nvim0.6 and update nvim to 0.7 for nvim-compleet. Version: NVIM v0.7.0-dev+1341-g79dcd045d (officially build binary on github release today)

https://user-images.githubusercontent.com/25300418/160394054-177e684c-286f-4604-8fb8-00d10307f65b.mp4

Here is the minimum configuration just for nvim-compleet. You can see the CompleetStart and CompleetStop commands exists, and nothing occurs when keys are stroked

noib3 commented 2 years ago

The plugin is running fine, it's just that no useful sources have been implemented yet. The only source currently available is lipsum, which by looking at your config I believe you have already enabled.

Try typing the s character. A bunch of senseless words should come up.

zjp-CN commented 2 years ago

Try typing the s character. A bunch of senseless words should come up.

Well, nothing comes up.

noib3 commented 2 years ago

What's the output of :au Compleet?

zjp-CN commented 2 years ago
:au Compleet
--- Autocommands ---
Compleet  BufEnter
    *         <Lua function 5>
noib3 commented 2 years ago

Mh, seems like no buffer is attached. What's the output of that same command after a :CompleetStart? Also, what does :mes say?

zjp-CN commented 2 years ago

What's the output of that same command after a :CompleetStart?

[nvim-compleet] Started completion in buffer 5

what does :mes say?

[nvim-compleet] Started completion in buffer 5 [nvim-compleet] Completion is already off in this buffer [nvim-compleet] Started completion in buffer 5 [nvim-compleet] Completion is already off in this buffer [nvim-compleet] Started completion in buffer 5

zjp-CN commented 2 years ago

if I start a new nvim, and type :CompleetStart, all the :mes is [nvim-compleet] Started completion in buffer 1.

zjp-CN commented 2 years ago

Then type s character in insert mode, still get nothing more.

noib3 commented 2 years ago

I cannot reproduce.

Can you try these steps:

If that still doesn't work, try recompiling the plugin with RUSTFLAGS='--cfg debug' cargo build --release && make install inside the install directory. nvim-compleet should print the current settings after require('compleet').setup({..}).

zjp-CN commented 2 years ago

Can you try these steps:

These three steps works!

noib3 commented 2 years ago

There's probably a problem with your config then.

zjp-CN commented 2 years ago

Yes. And I resolved it. Thank you.