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

[BUG] Neovim config is broken. #364

Closed
2 tasks done
BIGGERSHOTLINUX opened this issue Nov 27, 2024 · 9 comments
Closed
2 tasks done

[BUG] Neovim config is broken. #364

BIGGERSHOTLINUX opened this issue Nov 27, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@BIGGERSHOTLINUX
Copy link

BIGGERSHOTLINUX commented Nov 27, 2024

Checklist before submitting an issue

  • I have searched through the existing closed and open issues and made sure this is not a duplicate
  • I have specifically verified that this bug is in the dotfiles and is not an error in my installation, configuration or operating system.

Description of the bug

When i start nvim, i get this message:
Error detected while processing /home/name/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/name/.config/nvim/init.lua
:16: module 'lazy' not found:
no field package.preload['lazy']
no file './lazy.lua'
no file '/usr/share/luajit-2.1/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy/init.lua'
no file '/usr/share/lua/5.1/lazy.lua'
no file '/usr/share/lua/5.1/lazy/init.lua'
no file './lazy.so'
no file '/usr/local/lib/lua/5.1/lazy.so'
no file '/usr/lib/lua/5.1/lazy.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/name/.config/nvim/init.lua:16: in main chunk
Press ENTER or type command to continue
and then its just barebones nvim.

Reproducing the issue

No response

Expected behaviour

Expected behavior would be the one in the wiki and homepage

Additional context

No response

System information

Arch Linux
Other Window managers:
Hyprland
Niri

@BIGGERSHOTLINUX BIGGERSHOTLINUX added the bug Something isn't working label Nov 27, 2024
@gh0stzk
Copy link
Owner

gh0stzk commented Nov 27, 2024

Mmmm if u enter nvim skip the error message and you can do :Lazy press "U" fixes the problem??

Be sure ~/.config/nvim/lua/ dir exists, should be, if u use my install script.

Be sure you have lua installed. sudo pacman -S lua

@BIGGERSHOTLINUX
Copy link
Author

Mmmm if u enter nvim skip the error message and you can do :Lazy press "U" fixes the problem??

Be sure ~/.config/nvim/lua/ dir exists, should be, if u use my install script.

Be sure you have lua installed. sudo pacman -S lua

i have lua installed, but when i put in ":lazy," i get an error
"not an editor command"

@0xN1nja
Copy link
Contributor

0xN1nja commented Nov 28, 2024

@BIGGERSHOTLINUX what's the output of nvim --version

@BIGGERSHOTLINUX
Copy link
Author

nvim --version

NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1731601260

@gh0stzk
Copy link
Owner

gh0stzk commented Dec 19, 2024

Is my neovim config in ~/.config/neovim????

@BIGGERSHOTLINUX
Copy link
Author

Is my neovim config in ~/.config/neovim????

uhhhhh no
there is no .config/neovim

@BIGGERSHOTLINUX
Copy link
Author

theres a nvim

@BIGGERSHOTLINUX
Copy link
Author

i renamed it to neovim... it doesn't give me errors now but its still default nvim, even after running :Lazy

@gh0stzk
Copy link
Owner

gh0stzk commented Dec 19, 2024

Oh sorry bro, mi mistake, yes the dir must be nvim, ~/.config/nvim

lets do it manually, delete the dir ~/.config/nvim, now delete ~/.cache/nvim and delete ~/.local/share/nvim and ~/.local/state/nvim

Now clone my repo again in the dir you want, git clone --depth=1 https://github.com/gh0stzk/dotfiles.git

now enter my repo, cd dotfiles

now copy the .../dotfiles/config/nvim directory and paste in ~/.config/

Now open a terminal and execute nvim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants