Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got error when start nvim #3

Open
yinduren opened this issue May 23, 2022 · 12 comments
Open

got error when start nvim #3

yinduren opened this issue May 23, 2022 · 12 comments

Comments

@yinduren
Copy link

After down load nvimcfg to ~/.config/nvim, when I started my nvim, I have got an error message below:

nvim/lua/aloha/init.lua:69: attempt to index field 'opt' (a nil value)

@alohaia
Copy link
Owner

alohaia commented May 23, 2022

Try this command in nvim:

:lua print(vim.inspect(vim.opt))

What's the output?

@yinduren
Copy link
Author

Try this command in nvim:

:lua print(vim.inspect(vim.opt))

What's the output?
The output is :
nil

@alohaia
Copy link
Owner

alohaia commented May 23, 2022

It looks like your nvim doesn't have vim.opt. I have no idea how can it be possible...

@yinduren
Copy link
Author

Bad news | : (

@yinduren
Copy link
Author

After reinstalled neovim by using ppa source, I have got another error message when starting nvim:

Error detected while processing /home/lucas/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/lucas/.config/nvim/lua/aloha**/packer.lua:501: attempt to call field 'nvim_create_user_command' (a nil value)**
stack traceback:
| /home/lucas/.config/nvim/lua/aloha/packer.lua:501: in function 'prepareOptPlugins'
| /home/lucas/.config/nvim/lua/aloha/packer.lua:129: in function 'init'
| /home/lucas/.config/nvim/lua/aloha/init.lua:73: in function </home/lucas/.config/nvim/lua/aloha/init.lua:1>
| /home/lucas/.config/nvim/init.lua:2: in main chunk

@alohaia
Copy link
Owner

alohaia commented May 25, 2022

Ι see. It's obvious that your Neovim is too old. You should have nvim >= 0.7.0. Use nvim --version to check the version.

@alohaia
Copy link
Owner

alohaia commented May 25, 2022

This page may be helpful.

@yinduren
Copy link
Author

In WSL2 use “sudo apt install neovim”,the nvim is v0.6.1。
Maybe I should install it from source code.

@alohaia
Copy link
Owner

alohaia commented Jun 2, 2022

You can use unstable Neovim PPA.

@wmmiiii
Copy link

wmmiiii commented Aug 26, 2023

When I try to write c or c++ script, I have got an error message below:
Error detected while processing TextChangedI Autocommands for "*":
Error executing lua callback: .../packer/start/nvim-snippy/lua/snippy/reader/snipmate.lua:35: Options [w, i, b]
cannot be combined

@alohaia
Copy link
Owner

alohaia commented Aug 26, 2023

@wmmiiii This is because that I have changed snippet engine from Ultisnip to Snippy but have not adjust these snippet files... You remind me. It's not a good idea to include personal snippets in this repo.

Try to pull this repo now, I've remove those snippets.

@wmmiiii
Copy link

wmmiiii commented Aug 26, 2023

@wmmiiii This is because that I have changed snippet engine from Ultisnip to Snippy but have not adjust these snippet files... You remind me. It's not a good idea to include personal snippets in this repo.

Try to pull this repo now, I've remove those snippets.

Thanks for your reply, I'll pull again later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants