ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.83k stars 451 forks source link

Failed to source `luasnip.lua` #1131

Closed jwangtobeno1 closed 5 months ago

jwangtobeno1 commented 6 months ago

Version confirmation

Following prerequisites

Neovim version

0.9.5

Branch info

main (Default/Latest)

Minimal (user) folder structure required to reproduce the issue

no modify

Minimal config with steps on how to reproduce the issue

The following warning will be displayed every time I start nvim

image

Expected behavior

turn off waring

Additional information

No response

ayamir commented 6 months ago

A related issue was fixed: https://github.com/ayamir/nvimdots/issues/1030

jwangtobeno1 commented 6 months ago

The problem remains. Whenever I open a file with nvim and press i or a or o to enter edit mode, this warning will appear.

Snipaste_2024-01-06_21-45-49

image

ayamir commented 6 months ago

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

jwangtobeno1 commented 5 months ago

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

do the following?

  1. rm -rf .../.config/.../luasnip.lua
  2. sudo pacman -S luasnip
Jint-lzxy commented 5 months ago

do the following?

u shouldn't use ur package mgr to install LuaSnip. Just fire up neovim and let lazy do the work for u.

p.s. LuaSnip is located in ~/.local/share/nvim/site/lazy/LuaSnip.

jwangtobeno1 commented 5 months ago

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

it's ok

toyuanx commented 3 months ago

Can't repro indeed. Try removing the dir of LuaSnip and reinstall it?

it's ok

how do you uninstall and reinstall luasnip?


I fixed too, I remove the file ~/.local/share/nvim/site/lazy/LuaSnip, and then open a text, it reinstall by it self.