Skip to content

docs failed (LazyVim template) #158

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

Open
datacurse opened this issue Mar 23, 2025 · 27 comments
Open

docs failed (LazyVim template) #158

datacurse opened this issue Mar 23, 2025 · 27 comments

Comments

@datacurse
Copy link

Hello! Installed LazyVim template on nixos, using as flake. Lazy shows several errors regarding docs installation. I assume its something trivial but i have no experience in both nixos and nvim T~T

Image

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

Hmmmm

So, those files are in the store. lazy.nvim can't write to them

If you want the tags to generate you will have to install them via lazy.nvim instead...

I am exploring the options lazy.nvim has right now to see if there is a way to get it to generate to somewhere else?

To be honest, I don't use lazy.nvim. I didn't think of this.

I wonder if this is a thing we could look at doing in nixpkgs one day so that all nvim plugins from nix have this feature?

you can look at the readmes in the store with lua vim.cmd.edit(nixCats.pawsible("allPlugins.start.pluginname") .. "/README.md") but I understand thats not quite the same.

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

Generally I try to steer people towards making their own configurations using lze or lz.n for lazy loading like the example template.

The readme for the LazyVim template was really bad and failed at that goal.

However I would also like to go through soon and improve the LazyVim template in general.

@datacurse
Copy link
Author

@BirdeeHub

id like to do it the way you suggest ^^ which cats template would you recommend to use?

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

https://github.com/BirdeeHub/nixCats-nvim/tree/main/templates/example

This is the main example template.

Leave this issue open though I would like to see if I can solve the docs thing, and maybe add some extra categories for the worst offenders of the extras such as these ones.

Or at least have people be more aware of the limitations of using LazyVim on nix.

@BirdeeHub
Copy link
Owner

So, yeah LazyVim template, despite being not the suggested method, is also a little subpar right now. The kickstart one that also uses lazy.nvim works much better than the LazyVim one and I would like to make it at least closer to that.

But yeah using lazy on nix just adds extra layers in between you and actually configuring the thing unless you are actually using lazy.nvim to download the stuff (and honestly, even then)

@datacurse
Copy link
Author

can you please show your config? 00

@BirdeeHub
Copy link
Owner

#105

Mines a mess but I put it here.

I used to have it in my main config repo but I moved it into a separate flake again so I could link it and not confuse XD

@datacurse
Copy link
Author

im all for minimizing abstractions, i cant keep too many things in my small head

@datacurse
Copy link
Author

#105

Mines a mess but I put it here.

I used to have it in my main config repo but I moved it into a separate flake again so I could link it and not confuse XD

thanks, i will cannibalize it :3

@datacurse
Copy link
Author

datacurse commented Mar 23, 2025

do i understand right that it will work even without nix? as in, ill be able to clone it to .config/nvim on my rpi 5

or could i just install nix package manager on rpi as well? not sure how it works

@BirdeeHub
Copy link
Owner

Well, not my personal one no. My personal one requires nix.

It could Im just lazy and dont need it.

The example config will though, it can just be cloned to ~/.config/nvim even without nix.
Although mason may fail sometimes depending on OS and what dependencies you have or not.

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

Its a nix config framework, if you arent using nix then the example one falls back to downloading the plugins via paq and the lsps via mason, which it can do because it has a normal directory structure, but you do have to put the urls in there for paq and Im too lazy to do that in my personal config.

All I would need to do is make a file with some urls in it though so if I need to for some reason I will. But yeah, I only use nix for it.

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

honestly, for things like that, I personally would pass the resulting drv to pkgs.dockerTools or nix-appimage to make a thing I can copy onto stuff, rather than define downloads for paq. (docker produces smaller images but requires docker)

It has a lot less error rate than mason (with mason failing pretty much every time on the first go because I forgot rust yet again)

But usually I can install nix onto whatever it is

and then I can just nix run github:BirdeeHub/nixCats-nvim?dir=templates/example or install it in home manager or nix profile install it temporarily

Its only truly dire situations where using paq as backup is required.

I typically avoid not using nix because, honestly, so much trial and error installing an nvim config on a machine. Always some sort of dependency I forgot that I needed but cant install via mason or whatnot.

@datacurse
Copy link
Author

sadly it seems that rpi 5 does not support nix yet

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

awww

ok, well, appimage, docker, or keep the list of urls up to date for paq are the options there then

The list of urls being mentioned:

https://github.com/BirdeeHub/nixCats-nvim/blob/main/templates/example/lua/myLuaConf/non_nix_download.lua

@datacurse
Copy link
Author

ig ill go with the simplest one, which seems to be paq

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

honestly, the appimage and docker are not that complex either

you just pass the config to the bundler function at the end

here is me doing it with nix-appimage

https://github.com/BirdeeHub/birdeevim/blob/bc9213c6f1d346b9da1942aecddd77f3b6d32f76/flake.nix#L92-L94

Then you just nix build that output and copy it (mine is way too big tho... multiple GB... I keep meaning to refactor my config and make good use of my categories but never do because im too busy doing other stuff XD also docker images are notably smaller)

The one from the example template is small enough to be buildable in a github release via action though

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

@BirdeeHub
Copy link
Owner

the mason stuff is all handled in the LSPs/init.lua in the example config along with the rest of the lsp stuff

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

Im going to work next on improving the LazyVim template though because I made the regrettable decision of adding it in the first place XD So I suppose my personal config refactor will have to wait for longer XD

@BirdeeHub
Copy link
Owner

But yeah the errors were because you tried to update them via lazy when lazy wasnt what installed them basically

@datacurse
Copy link
Author

it seems that i was wrong and nixos can actually work on rpi 5 (the repo was archived today for some reason which spooks me out)

https://github.com/nix-community/raspberry-pi-nix

@datacurse
Copy link
Author

Im going to work next on improving the LazyVim template though because I made the regrettable decision of adding it in the first place XD So I suppose my personal config refactor will have to wait for longer XD

thats a wide pipeline entrance into nixCats. just wait for Vimjoyer to post a video or something haha

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

Hopefully!

But yeah right now, I have until core neovim starts working on remote plugin hosts to work on fixing this ill-advised template. Thats the only thing coming up (in 0.12, so a while from now) that forces me to change anything in the core of nixCats. So until then, templates and help.

(seriously why did I do lazyvim to myself... I dont even like the config it gives XD but, ehh, it doesnt change that often, should be fine, maybe I learn some tricks for getting some random languages working nicely along the way)

@BirdeeHub
Copy link
Owner

it seems that i was wrong and nixos can actually work on rpi 5 (the repo was archived today for some reason which spooks me out)

https://github.com/nix-community/raspberry-pi-nix

also, it doesnt need nixos, just nix itself

@BirdeeHub
Copy link
Owner

BirdeeHub commented Mar 23, 2025

and it makes a ton of sense that it would run on rpi actually, robotics engineers like both nix and rpi

It being achived is a bit odd, did support get fully upstreamed or something?

@datacurse
Copy link
Author

and it makes a ton of sense that it would run on rpi actually, robotics engineers like both nix and rpi

It being achived is a bit odd, did support get fully upstreamed or something?

i have no idea what happened, it seemed to be very active and had recent changes and then boom, archived.

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

2 participants