r/lunarvim • • Oct 17 '22

First run - errors

                       Find File                                 SPC f

                       New File                                  SPC n

[nvim-treesitter] [0/12] Extracting tree-sitter-json... nvim-treesitter[tsx]: Error during tarball extraction. gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now Press ENTER or type command to continue

2) No icons (Using putty to remote ssh to a Linux machine) 3) How do I get the multi-pane screen with file list on the left and possibly a pane with list of functions on the right? 4) Are ctags (symbol/definition search) included? If so, how to invoke it?

Otherwise, looks really cool.

1 Upvotes

6 comments sorted by

2

u/Alternative_Mention8 Oct 30 '22 edited Oct 30 '22

The initial treesitter woes might resolve by running :LvimCacheReset. The error will go away once treesitter installs the modules it needs.

2) The icons come from having nerdfonts installed for your terminal.

3) Cool idea.

4) That is handled out of the box with treesitter.

1

u/fractalspace Nov 04 '22

:LvimCacheReset did get rid of the error momentarily but came back on next start. Turns out that tree-sitter was trying to install something but failing due to permissions. Started with sudo and the errors went away. Installing nerd-fonts.

Thanks for the tips!

2

u/fractalspace Nov 05 '22

nerd-fonts: Installed few times with no luck. Turns out they don't show up on Putty terminal (using Windows+ssh to linux). A native terminal on linux box shows the icons were there.

Solution: Use X (vcxsrv) and run terminator on the Linux box.

1

u/fractalspace Dec 28 '22

Better solution: Install nerdfonts in Windows. (download nerdfonts for Windows from here https://www.nerdfonts.com/font-downloads, unzip. Goto control panel, search 'Fonts'. When you see some fonts, go back to the unzipped folder with nerdfonts and drop all files into this Fonts window). Open Putty, Settings, Appearance, Fonts and type "3270". Pick the desired nerdfont and size. Now enjoy all icons and symbols in lunarvim.

2

u/Alternative_Mention8 Nov 04 '22

Regarding that treesitter error, it's crops up for everyone it seems. `:TSUpdate` will clear it (someone should do a PR to add this to the docs/troubleshooting lmao)

1

u/[deleted] Oct 11 '23

Root cause: github authentication (in my case).
Solution: Add github "token based" authentication in .curlrc
in ~/.curlrc:
--data '{"access-token":"ghp_xxyyzz........."}'
then start nvim
tree-sitter will install as expected.
Note: .curlrc changes are global. Remove/restore after nvim is done with installation.