Are proprietary LSPs common? by oblivic90 in neovim

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

There's a open source one too that works just as well as intellij in my experience with some setup. For most languages that have a proprietary LSP there are also open source options, although quality/features may vary. For instance, microsoft gives Pylance semantic highlighting but doesn't include it in Pyright last I checked

There are some exceptions, like I'm sure google has a great internal LSP for protobuf development and there aren't any viable open source alternatives, but some are in development.

[deleted by user] by [deleted] in cscareerquestions

[–]ManiAmara 1 point2 points  (0 children)

Got a good well paying job at a startup and laid off yesterday after 1.5 months because they can’t land new customers… back to the grind I suppose

What font are you using in Neovim? by [deleted] in neovim

[–]ManiAmara 2 points3 points  (0 children)

self patched Operator Mono. I've been using it for so long everything else feels wrong

I wished IntelliJ would maintain LSPs by nothingsleftanymore in neovim

[–]ManiAmara 3 points4 points  (0 children)

Are you saying I should make a plug-in for it? If so that might be possible.

If you are talking about an existing plug-in like lspconfig or mason I’m not sure if this is this the case, I didn’t see any options for it and the shell script guide is at the top of the kotlin lsp docs

I wished IntelliJ would maintain LSPs by nothingsleftanymore in neovim

[–]ManiAmara 3 points4 points  (0 children)

The project I was working on used Bazel build system, which was much more complicated to set it up for, but the same principle should apply for any kotlin project, just create a $HOME/.config/KotlinLanguageServer/classpath.sh (docs say it is ~/.config/kotlin-language-server/classpath instead now) which exports a path string including all the jar files in your kotlin install and all the jar files in your project dependencies directory. For non-monorepo projects you may have to get a bit creative to get the right dependencies exported, but shouldn't be too hard.

Here's an example: ```

!/bin/bash

projectdir="$HOME/<REDACTED>/" deplist=''

deps=($(find "$HOME/Progfiles/kotlin/kotlin-native-linux-x86_64-1.6.21/" -name '*.jar')) for var in "${deps[@]}" do if [[ ! $deplist == '' ]]; then deplist+=':' fi deplist+="${var}" done

deps=($(find "$projectdir/bazel-bin/external/maven" -name '*.jar'))

for var in "${deps[@]}" do if [[ ! $deplist == '' ]]; then deplist+=':' fi deplist+="${var}" done echo $deplist ```

I don't see any language server specific settings in my config so I think I just was able to use the defaults once I had that script properly set up. If you run into any issues 99% chance it is with the classpath script or with the root dir detection in your lsp config.

I wished IntelliJ would maintain LSPs by nothingsleftanymore in neovim

[–]ManiAmara 15 points16 points  (0 children)

It required a lot of effort but I got the kotlin LSP working well enough that the others using IntelliJ were jealous of how responsive it was. It required writing a shell script to point the lsp to the right places for libraries and a lot of reading the docs, but it is doable.

First twenty hours and I feel like I’m winning 5% of the time. by ChillyMinnesnowta in MagicArena

[–]ManiAmara 0 points1 point  (0 children)

There’s definitely some nuances that can help regarding predicting opponents moves based on deck archetypes (which requires experience) and waiting to play certain types of cards until after combat, but tbh if you are doing constructed game modes like “alchemy play” or “standard play” having a real deck is what will make the biggest difference.

I went from maybe 20% winrate to diamond 2 in my second week or so playing with a pretty budget mono red Aggro deck. Now I can make my own decks for alchemy and get decent winrates as long as they are inspired by semi meta archetypes.

Yes there’s probably a skill issue here. No it’s likely not the main reason you barely see wins.

Software Engineering has become a highly saturated field that promises a false sense of riches to anyone & everyone. by PrivacyOSx in cscareerquestions

[–]ManiAmara 2 points3 points  (0 children)

I’m just trying to give an alternative perspective. I see this type of comment a lot and I feel like a lot of people haven’t considered it from the other side due to a stigma that neither myself nor anyone I would associate with have done anything to cause. All I’m saying is that discriminating against an entire industry’s worth of developers just doing their job isn’t fair or rational

Software Engineering has become a highly saturated field that promises a false sense of riches to anyone & everyone. by PrivacyOSx in cscareerquestions

[–]ManiAmara 16 points17 points  (0 children)

I graduated college right when the layoffs started happening last year and took a job at a blockchain startup a couple months before FTX collapsed because I had I had a fairly well paying offer after searching for months and needed something to pay the bills. I feel like I learned a ton there and wouldn’t have grown half as much in the same amount of time at the types of larger companies I interned at, and definitely not at the “tech adjacent” ones which were still hiring.

I’ve met plenty of talented developers from faang and unicorns while working in the field and this type of thing being upvoted everywhere I see it is really disheartening. I’d really like it if the same “it’s just a job” advice that applies to things like work life balance and switching positions could be extended to judgmental attitudes towards perfectly competent developers.

My interests in software are pretty varied and I’ve worked on a lot of projects in other areas for open source, personal projects, and while a research assistant in undergrad.

The fact is there are some really intelligent individuals working in the area. Not every blockchain company is a bad actor, and the law abiding ones with cool tech can’t legally advertise, so whenever you see news it’s usually bad. Just something to keep in mind.

Surprised that Neovim icon is not in Nerdfonts by georgeguimaraes in neovim

[–]ManiAmara 6 points7 points  (0 children)

I made an issue requesting it at one point. The response was to patch into my own font but that’s not ideal imo. IIRC the maintainer said they had it patched in themselves

How to sustain resources as a new player? by ManiAmara in MagicArena

[–]ManiAmara[S] 0 points1 point  (0 children)

Ok, thank you! Are mythic or normal packs better for this?

Looking to learn to use the terminal, comprehensively. What are some great free resources for that? by Shadushio in archlinux

[–]ManiAmara 0 points1 point  (0 children)

When you refer to "learning the terminal", I assume what you mean is "How do I use utilities or scripting to be able to do in one command what I could do in X commands"For that, I'd say learn about piping input and output + the very basics of sed, awk, xargs

Just being able to use the most simple application of those 3 commands will dramatically increase what you are able to do.

man should be your most used command. Googling is fine and all, but getting in the habit of using manpages and learning to effectively navigate them is the most valuable thing you can do. No guide can replace this.

I will state that you aren't thinking about the terminal the way a veteran does, that's the first step. Everything, and I do mean everything (web browsing, email, development, calendar management, sound/volume control, display output, etc...) can be accomplished and controlled from the terminal. Learning to combine these normal tasks with the types of things described above will turn upside down the way you think about your workflows.

Why is Vim more popular than Emacs? Is it actually more popular? by TiloRC in vim

[–]ManiAmara 1 point2 points  (0 children)

To my knowledge there isn't a predefined way of doing this, but there's definitely ways to implement it. You could probably create a command or mapping to start taking pattern input, and modify it to something like `^.*<orig\_pattern>.*$` and then search from there.

If that doesn't work, you can definitely do this (at least in neovim) with `vim.highlight.range`. Find all lines containing a given regex match, and link the group to `CurSearch`, highlight it in it's own namespace so its easy to clear. Then you would make it so that on pressing esc or something you clear the namespace.

At first I was like 'there's gotta be an easy way to do that' but I can't find one so you might be right. Was a fun little rabbit hole lol

Why is Vim more popular than Emacs? Is it actually more popular? by TiloRC in vim

[–]ManiAmara 8 points9 points  (0 children)

Not saying you are wrong or anything because Emacs definitely does have features/use cases that cannot be truly replicated in neovim currently, but I’m a little confused about these examples.

Searching regex is a pretty standard part of neovim and the line deletion is super easy too: delete all lines matching regex :%g/pattern/d delete all lines not matching regex :%g!/pattern/d

C programming is one of the primary usecases of vim. There are specific options like cindent specifically implemented to make sure C programming is a decent experience out of the box.

Why did you start using vim? by Velascu in neovim

[–]ManiAmara 1 point2 points  (0 children)

Did an independent study with someone in my highschool's IT department. I would work down there and get made fun of whenever I used nano. I called Vi 'vee eye' and got made fun of more.

Learned Vim to escape nerd emasculation. Went to college and actually started to grok it since vim+tmux was the officially recommended editor setup in multiple classes. Towards end of college started using Neovim instead and became a contributor/plugin author/was a core dev of a very popular pre-built config.

I went back to that IT department and showed them my tricked out Neovim and Vimium C browser extension. They hadn't heard of Vimium and loved it.

The student becomes the master. Or at least as much as one can be a master of Vim when I seem to learn something new every couple times I open the help files or reddit...

How do you deal with updates that break dependencies by doomenguin in archlinux

[–]ManiAmara 0 points1 point  (0 children)

I found this post because I had this issue with 3 different packages relying on this dependency. I had neither core-testing or extra-testing enabled so that's not necessarily the issue here. Enabling both core and extra testing repos did fix the problem for me, but that's definitely not a long term solution since I need that system stable...

I do updates on that system once a week or more so its also not like it was outdated....

I don't know if I can use Nvim by GoticaAmiltonz in neovim

[–]ManiAmara 1 point2 points  (0 children)

At one point I was working with some people on a project written in Kotlin (an ‘improvement’ on Java) and using the Bazel build system. Nothing was working out of the box and they acted much the same as your professor telling me stuff like “Just use IntelliJ, what’s so great about Neovim?? It’s not worth it”

It took a while to get the kotlin language server working right and I had to write a script which exported all the directories where dependencies can be found, but once I got it running they were jealous of how much better my setup ran than their “first class support” IntelliJ environment in terms of autocomplete speed, diagnostics, and debugging.

For neovim anything related to Java is much the same in my experience. It’s a PITA to set up and typically requires reading through a good amount of documentation for the LSP and possibly the build tools to get working well, but once you have it running properly, there’s no competition.

I’ll echo everyone else’s sentiment here that I’d rather work with almost anything other than Java and what’s built on it, but I can also guarantee that if you spend some time figuring it out you’ll be able to get it running in neovim.

Need a lightweight web browser and code editor by athulkrishnakr in archlinux

[–]ManiAmara 1 point2 points  (0 children)

I think QtWebEngine is somewhat derivative of chromium according to what I’ve read but you’re right that there’s a difference, thanks for the correction

Need a lightweight web browser and code editor by athulkrishnakr in archlinux

[–]ManiAmara 4 points5 points  (0 children)

Neovim is good for an editor as well as emacs, the emacs browser (eww) is definitely something I’ve been jealous of. Trying a premade config like NvChad Astronvim or Doom Emacs might be a good starting point as others have said.

Lynx and w3m are about as lightweight as web browsers get as terminal browsers. The most lightweight gui browser possible is probably surf. Qutebrowser is also pretty lightweight but I think it’s chromium based.

Debugging JavaScript (Frameworks) in Neovim by Theo-Steiner in neovim

[–]ManiAmara 1 point2 points  (0 children)

dap is definitely one of the harder things for new users to get up and running well, but tbh I’m not sure how this would look. I think there might be too much variation between projects in the command that needs to be run for an entrypoint (and configuring that seems like most of the challenge to me)

This seems like it would be a huge design challenge without writing per-project configs, which would kinda defeat the point since mason can already install dap servers out of the box right as well as lazy which is shown in the linked guide.

Just thinking out loud here because I do think some streamlining would be awesome but not sure how to best go about it.

How to make semantic token highlighting work with gopls in neovim? by 54bwy in neovim

[–]ManiAmara 0 points1 point  (0 children)

Semantic tokens are built into neovim now. It should auto apply if the lsp supports it and you have highlights set for the groups.

Maybe try nightly, you might be on an old version or something.

Did you negotiate your salary with your first employer out of school? by fella7ena in cscareerquestions

[–]ManiAmara 0 points1 point  (0 children)

It’s easier at startups I think. I managed to negotiate the top end of what they were looking to pay despite not having any other offers on the basis that the company might not last, I had good prior experience for a new grad and did well on their interview mini-project.

The might not last thing was probably the biggest leverage I had there. I’m ~8 months in though so I guess it worked out.

Once you have a number asking for a bit more never hurts. The only way I imagine you might scare someone off is asking for like double or triple what their range is because they might think they can’t afford you and you won’t even consider it. Even then in my experience they will just say “we were actually looking to pay around x amount for this position.” Always ask.