Skip to content

On a freash neovim installation kickstart throws a "name too long" error #2086

@Still-Here-0

Description

@Still-Here-0

Before Reporting an Issue

  • I have read the kickstart.nvim README.md.

  • I have read the appropriate plugin's documentation.

  • I have searched that this issue has not been reported before.

  • By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.

Describe the bug

I don't really know what this error is. I am new to neovim, I trying to make this work for the last 2 days... but it simply don't. After installing kickstart I am prompted to install some plugins (lazy UI does not show up):

These plugins will be installed:

guess-ident.nvim from https://github.com/NMAC427/guess-ident.nvim

Processed? [Y]es, (N)o, (A)lways:

I press "A", them I get this error:

Error in /home/user/.config/nvim-kickstart/init.lua:
E5113: Lua chunk: /home/user/.config/nvim-kickstart/init.lua:397: Vim:E5113: Lua chunk: vim/loader.lua:0: ENAMETOOLON
G: name too long: /home/user/.cache/nvim-kickstart/luac/%2fhome%2fuser%2f.local%2fshare%2fnvim-kickstart%2fsite%2fpa
ck%2fcore%2fopt%2ftokyonight.nvim%2flua%2ftokyonight%2fgroups%2fmini_trailspace.luac
stack traceback:
        [C]: in function 'assert'
        vim/loader.lua: in function ''
        vim/loader.lua: in function 'loadfile'
        ...te/pack/core/opt/tokyonight.nvim/lua/tokyonight/util.lua:22: in function 'get_group'
        .../core/opt/tokyonight.nvim/lua/tokyonight/groups/init.lua:88: in function 'get'
        .../core/opt/tokyonight.nvim/lua/tokyonight/groups/init.lua:155: in function 'setup'
        ...e/pack/core/opt/tokyonight.nvim/lua/tokyonight/theme.lua:8: in function 'load'
        ...ack/core/opt/tokyonight.nvim/colors/tokyonight-night.lua:1: in main chunk
        [C]: in function 'colorscheme'
        /home/user/.config/nvim-kickstart/init.lua:397: in main chunk
stack traceback:
        [C]: in function 'colorscheme'
        /home/user/.config/nvim-kickstart/init.lua:397: in main chunk

To Reproduce

  1. Download ghostty:
sudo add-apt-repository ppa:mkasberg/ghostty-ubuntu
sudo apt update
sudo apt install ghostty
  1. Download neovim
cargo install bob-nvim
bob install stable
bob use stable
bob list
  1. Download some tools
sudo apt install ripgrep
sudo apt install fd-find
sudo apt install fzf
go install github.com/jesseduffield/lazygit@latest
sudo npm install -g @mermaid-js/mermaid-cli
  1. Clone my repo (I just made a fork from kickstart main branch)
git clone https://github.com/Still-Here-0/my-nvim.git ~/.config/nvim-kickstart
  1. Set alias on .bashrc
alias kvim='NVIM_APPNAME="nvim-kickstart" nvim'

NOTE: I do have lazyvim on my machine but it is in another folder called "nvim-lazy" with the alias set to lzvim. And yes it works with not problem.

If I comment line 93 ("vim.loader.enable()") from init.lua I no longer get this error. However I do not know if I shoud do this.

Desktop

  • OS: Linux Mint 22.3
  • Terminal: Ghostty (latest, v1.3.1)

Neovim Version

nvim --version
NVIM v0.12.2
Build type: Release
LuaJIT 2.1.1774638290
Run "nvim -V1 -v" for more info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions