343
submitted 2 weeks ago by mawkler@lemmy.ml to c/neovim@programming.dev

I posted about this on Reddit a year ago, and I figured write about it again:

Like most companies, the one I work for will happilly pay for any employee's license to a proprietary IDE without batting an eye. Therefore, I argued that I should be able to spend that budget on a donation to an open source tool that I use daily instead. After a lot of back and forth I finally got them to donate an amount that would correspond to what they would pay for a yearly subscription to a proprietary tool to Neovim.

Do you use Neovim at work? If so, I urge you to do the same thing! That way the core team can continue to deliver awesome new features to the editor we all love. Here's a link to where you can donate.

I now got my work to pay a $400 yearly "Neovim subscription" for the second time.

To those wondering how I did it, I basically just argued that since employees at my work have an allocated budget for buying proprietary tools, it makes sense if we could spend an equivalent amount on a FOSS alternative. That way the money spent would benefit us all, and since we use the tool to make money we have a responsibility to give back to the FOSS project.

There was a bit of a back-and forth for technical reasons because (at least in Sweden where I live), payments and donations are handled and regulated differently, but they finally made it work.

If you also use Neovim for work, I encourage you to do the same thing! That way the core team can continue to deliver awesome new features to the editor we all love. Here's a link to where you can donate. There's also the official merch store if you would like to support the project that way: https://store.neovim.io/.

19
submitted 1 month ago by mawkler@lemmy.ml to c/neovim@programming.dev

Hi! I've created refjump.nvim which is a plugin that lets you use ]r/[r to jump to the next/previous LSP reference in the current buffer for the item under the cursor.

The plugin also automatically integrates with demicolon.nvim if you have it installed, which I recently posted about. This means that you can also repeat the jumps forward/backward with ;/,.

Here's a video showing it in action.

Enjoy!

14
submitted 1 month ago by mawkler@lemmy.ml to c/neovim@programming.dev

demicolon.nvim is a plugin that lets you use ;/, to repeat more jumps than just t/T/f/F like diagnostic jumps with ]d/[d and treesitter text-object jumps like ]f/[f to next/previous function.

Now you can also easily make your own custom jumps repeatable with ;/,. For example, I've now made gitsigns.nvim's ]c/[c repeatable out of the box with demicolon.nvim. Here's the implementation if you're curious. For more information see the custom jumps section in the README.

12
submitted 1 month ago by mawkler@lemmy.ml to c/neovim@programming.dev

When using LuaSnip together with nvim-cmp and a snippet library like friendly-snippets or luasnip-snippets you get a lot of duplicated snippets. That's because the language server also servers snippets. Also, you might want to create your own custom snippet that happens to share the name of a snippet that already exists.

For example, with the setup mention above, let's say that I also have a custom fn snippet for Rust files. When I type fn, nvim-cmp suggests three snippets: one from rust-analyzer, one from friendly-snippets and my custom one.

The solution to overriding friendly-snippets with your custom ones suggested in this open LuaSnip issue is to create your own fork of friendly-snippets. However, this is not ideal because it adds a lot of extra work to each user to ensure that their fork is up-to-date with upstream. Also, it doesn't solve the issue with language servers serving snippets with the same name. I know that for most language servers you can disable snippets, but that doesn't really solve the issue either because you might want some of those snippets.

What I would like is the option to only see one of the snippets listed if there are multiple ones with the same name. Which one would be controlled with a priority list, for example:

  1. If there's a custom user snippet, use that
  2. Otherwise, if there's an LSP snippet, use that
  3. Otherwise, use the one from friendly-snippets

Is this possible to achieve today?

14
submitted 1 month ago by mawkler@lemmy.ml to c/neovim@programming.dev

Hi everyone! I've created a new Neovim plugin: demicolon.nvim. It lets you use ; and , keys to not only repeat t/T/f/F motions, but also to repeat diagnostic motions like ]w (jump to next warning) as well as jumps to nvim-treesitter-textobjects like ]f (jump to next function).

Video previewing it in action.

That's all. Have a great day!

21
submitted 3 months ago by mawkler@lemmy.ml to c/rust@lemmy.ml

cross-posted from: https://lemmy.ml/post/17090149

Hi! I've created a CLI tool for downloading Rust web books (like The Rust Programming Language) as EPUB, so that you can easily read them on your e-book reader. The tool is heavily based on this gist and a lot of proompting.

Check it out here: https://github.com/mawkler/rust-book-to-epub

16
submitted 3 months ago by mawkler@lemmy.ml to c/rust@programming.dev

Hi! I've created a CLI tool for downloading Rust web books (like The Rust Programming Language) as EPUB, so that you can easily read them on your e-book reader. The tool is heavily based on this gist and a lot of proompting.

Check it out here: https://github.com/mawkler/rust-book-to-epub

17
submitted 11 months ago* (last edited 11 months ago) by mawkler@lemmy.ml to c/neovim@sopuli.xyz

Hi! My plugin modicator.nvim now has support for lualine.nvim out of the box.

Modicator is a plugin that changes the color of the cursor's line number based on the Vim mode, just like statusline plugins like lualine do.

The lualine integration only gets loaded if the plugin gets detected, so it should have no effect on your startup time.

modicator.nvim's lualine integration

81
submitted 11 months ago by mawkler@lemmy.ml to c/newpipe@lemmy.ml

This app on Apple's app store is using NewPipe's name and logo but doesn't seem to have any other connections with the real NewPipe.

Is this a real NewPipe client for iOS or not? If not, are they allowed to do that?

[-] mawkler@lemmy.ml 45 points 1 year ago

attack the big corporations instead

That's the problem though. How do you even do that?

[-] mawkler@lemmy.ml 81 points 1 year ago

I'm not sure which is worse. I mean most desktop programs are just glorified web browsers anyway (i.e Electron)

[-] mawkler@lemmy.ml 10 points 1 year ago* (last edited 1 year ago)

Btw, is there any casting device/service available that's not spyware (i.e. AppleTV/Chromecast)?

[-] mawkler@lemmy.ml 18 points 1 year ago

Why are schools pushing so hard for enslaved Linux laptops?

1
submitted 1 year ago by mawkler@lemmy.ml to c/sweden@lemmy.world

När kan vi få svenska regeringen att göra detsamma?

[-] mawkler@lemmy.ml 37 points 1 year ago

New study shows that the floor is made out of floor

[-] mawkler@lemmy.ml 8 points 1 year ago* (last edited 1 year ago)

The term "Foo Fighters" originally comes from a UFO sighting by the U.S. military: https://en.wikipedia.org/wiki/Foo fighter

[-] mawkler@lemmy.ml 19 points 1 year ago

Neovim is awesome

[-] mawkler@lemmy.ml 6 points 1 year ago

Yes isn't even at this concert

[-] mawkler@lemmy.ml 8 points 1 year ago

"You will own nothing and be happy"

1
submitted 1 year ago by mawkler@lemmy.ml to c/neovim@sopuli.xyz

I saw that null-ls.nvim just added textidote support. Textidote seems to be a spelling/grammar checker that wraps LanguageTool, just like ltex-ls. Does anyone know how they compare?

[-] mawkler@lemmy.ml 41 points 1 year ago

These aren't "old person traits". It's common sense.

[-] mawkler@lemmy.ml 7 points 1 year ago

AUR is amazing

view more: next ›

mawkler

joined 1 year ago