Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Not working on ubuntu 20.04 #2

Closed
zjp-CN opened this issue Mar 28, 2022 · 12 comments
Closed

Not working on ubuntu 20.04 #2

zjp-CN opened this issue Mar 28, 2022 · 12 comments
Labels
question Further information is requested

Comments

@zjp-CN
Copy link

zjp-CN commented Mar 28, 2022

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)

compleet_not_working.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
Copy link
Owner

noib3 commented Mar 28, 2022

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
Copy link
Author

zjp-CN commented Mar 28, 2022

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

Well, nothing comes up.

@noib3
Copy link
Owner

noib3 commented Mar 28, 2022

What's the output of :au Compleet?

@zjp-CN
Copy link
Author

zjp-CN commented Mar 28, 2022

:au Compleet
--- Autocommands ---
Compleet  BufEnter
    *         <Lua function 5>

@noib3
Copy link
Owner

noib3 commented Mar 28, 2022

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
Copy link
Author

zjp-CN commented Mar 28, 2022

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
Copy link
Author

zjp-CN commented Mar 28, 2022

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

@zjp-CN
Copy link
Author

zjp-CN commented Mar 28, 2022

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

@noib3
Copy link
Owner

noib3 commented Mar 28, 2022

I cannot reproduce.

Can you try these steps:

  • nvim -u NONE
  • :lua require('compleet').setup({sources={lipsum={enable=true}}})
  • :CompleetStart

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
Copy link
Author

zjp-CN commented Mar 28, 2022

Can you try these steps:

These three steps works!

@noib3
Copy link
Owner

noib3 commented Mar 28, 2022

There's probably a problem with your config then.

@noib3 noib3 closed this as completed Mar 28, 2022
@noib3 noib3 added the question Further information is requested label Mar 28, 2022
zjp-CN added a commit to zjp-CN/nvim-0.7 that referenced this issue Mar 28, 2022
Add `vim.cmd [[packadd packer.nvim]]` and solved it.
@zjp-CN
Copy link
Author

zjp-CN commented Mar 28, 2022

Yes. And I resolved it. Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants