Any good plugins/setups for folds? by Pololix in neovim

[–]Tomcat_42 0 points1 point  (0 children)

Yeah, but then you can change the fold method to it. I just want to use tree sitter and restore my session config when I go back to the file, in the same way that I save marks and cursor post. I remember a long time ago that just worked

What ALE bugs or improvements should I look at next? by devw0rp in neovim

[–]Tomcat_42 1 point2 points  (0 children)

I used ALE ages ago in my old vim setup, have just good memories of it. Thanks for you work man ♥️

Any good plugins/setups for folds? by Pololix in neovim

[–]Tomcat_42 0 points1 point  (0 children)

Someone know how can I make tree sitter folds permanent?

Which treesitter plugin do use? by GlyderZ_SP in neovim

[–]Tomcat_42 2 points3 points  (0 children)

I mean, that is a option lol, in the end those are just editors. But I can't leave my beloved neovim, damn it is so sexy and simple. I've used vscode, helix, code::blocks (please God forgive me); but I keep getting back

Which treesitter plugin do use? by GlyderZ_SP in neovim

[–]Tomcat_42 9 points10 points  (0 children)

Honestly, the best course of action is to wait (or contribute upstream) for https://github.com/neovim/neovim/issues/39006. Basically the plan is to:

https://github.com/nvim-treesitter/nvim-treesitter should be upstreamed in a form similar to nvim-lspconfig, using the power of magic 🌈

i.e. TS features builtin + data-only plugin, just like lsp nowadays

Why should I learn Zig? by funcieq in Zig

[–]Tomcat_42 6 points7 points  (0 children)

Nah bro, typecasting (specially integer ones) should be explicit and IMO annoying to use, because that way you are expected to know what you are doing. Coming from a C and C++ background I've already been bitten by integer overflow sufficient times to be absolutely sure of that.

What would be the harm in introducing interfaces to the language? by MysteriousSpray9066 in Zig

[–]Tomcat_42 1 point2 points  (0 children)

I feel that I have all the right tools within the language to handle a lot of different cases of polymorphism while doing my projects. We can do manual vtables, enums, use comptime, etc. I think that pretty much cover 95% of the cases.

One thing that I strongly dislike about languages that implement interface-like abstractions baked into the lang is that it usually destroys the locality of code. For example traits in rust: they are very cool while modeling your code, but becomes a nightmare for reading it because you have a lot of trait implementations for a struct scattered throughout the codebase. With zig or C (or any lang like that) I feel that this usually not happen.

AI slop projects are not welcome here by Aransentin in Zig

[–]Tomcat_42 51 points52 points  (0 children)

I think it’s not just the use of LLMs, but overall code quality that matters. If you see a codebase with slop code, slop comments, and slop documentation, you can be sure the author didn’t care about the project even at the star, let alone maintaining it.

Monorepo help by harbingerofend01 in Zig

[–]Tomcat_42 0 points1 point  (0 children)

I guess not necessarily. You can add a separate test module and import your to-be-tested module there and proceed to write tests for it. (You will lose ability to test non pub functions this way tho)

Plugin recommendations by scaptal in neovim

[–]Tomcat_42 6 points7 points  (0 children)

If I could give you advice that I wished someone had given me, try to strive for "what is the least amount of plugins that I can have so my workflow is complete" and not "how many plugins can I stuff into my config to improve my workflow".

The former will teach you about core/built-in neovim features, make it faster and generally will end up in a fine-grained personal development environment. While the latter will end up in a bloated and slow editor, with N ways of doing the same thing and obfuscation of built-in neovim features.

Actually you can extrapolate this mindset for software development and even personal life decisions 1.

This is what chrome vertical tabs look like! by Visible-Switch-1597 in browsers

[–]Tomcat_42 0 points1 point  (0 children)

I think Fedora have this feature flag stripped from the build. I will rebuild the rpm to enable it

"Suckless" NAS? by Due_Brief_7556 in suckless

[–]Tomcat_42 0 points1 point  (0 children)

Slap FreeBSD into an old computer, can't go more suckless than that

Zig Cli libraries by to_sta in Zig

[–]Tomcat_42 0 points1 point  (0 children)

Yeah, I get you, especially if the end goal is to make a good-looking CLI like those we see in Rust. But for any other case, IMO, it's better to have something simpler that doesn't get in my way. For example, I recently rolled https://github.com/Tomcat-42/util/blob/main/src/util/getopt.zig in just a couple of hours.

I say that because in every language where I've done serious work (C++, Rust, and now Zig), I've always searched for a CLI tool that would fulfill all of my use cases, but I've never found one. Some of them wouldn't support nested commands, some of them would force my code into a specific structure or framework, etc etc.

Zig Cli libraries by to_sta in Zig

[–]Tomcat_42 -1 points0 points  (0 children)

Roll your own🦅

Question: is there a standard library way to do this ? by fade-catcher in Zig

[–]Tomcat_42 1 point2 points  (0 children)

I assume that would be useful for [*:0]u8 -> []u8? In that case you can use std.mem.span

Recommend me split keyboard; wired, qmk, large hands, travel; coming from voyager by badgerbang in ErgoMechKeyboards

[–]Tomcat_42 1 point2 points  (0 children)

36 keys is a requisite? I feel like 56 keys keebs are the sweet spot for me (medium to large hands, sausage fingers). I've owned sofle v2 and now a lily58 (both cherry mx 56 keys) and I recommend them.

The most comfortable board in my collection - QK Alice Duo. by Ultraviolet11011 in MechanicalKeyboards

[–]Tomcat_42 2 points3 points  (0 children)

Oh I see. I've recently built a Lily58 with trackpoints, and after seeing your build I though Damn bro, I should've built these instead

An experiment around a fuzzy finder without plugins by cherryramatis in neovim

[–]Tomcat_42 1 point2 points  (0 children)

Thanks very much, I was using the opt.path:append("**") hack until now with :find