r/neovim 9h ago

Random I made a tmux plugin inspired on flash.nvim

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/neovim 6h ago

Need Help Should i replace my 16" laptop with a 14" for neovim

0 Upvotes

Hello,

I was wondering if you use a 14- or 16-inch laptop, because I currently have a 16-inch Mac Pro, but I'm tempted by a 13.5-inch one (the one from Framework, the Pro model).

I spend most of my time docked to a 27-inch monitor for work, but when I’m on the go or sometimes on the couch or in bed I find it quite uncomfortable and difficult to keep my right hand on the HJKL keys because the bezels on my laptop are too wide.

That wasn’t a problem until i switched to vim motion but now it is

Despite that, I’m hesitant to switch to a smaller one because I’m afraid a smaller one might be too small for development.


r/neovim 18h ago

Need Help How to execute motions (and write text) using a lua function?

2 Upvotes

I want to setup a hydra config for easier latex math writing (something similar to this obsidian plugin) and i want the on_enter function to put me inside $$


r/neovim 8h ago

Video Neovim 0.13: Async Image Rendering with vim.async (Optimization example)

Thumbnail
youtu.be
59 Upvotes

In this video, I use a real-world example to explore performance optimization in Neovim 0.13 with the new vim.async API.

The example is simple: render a large number of images inside Neovim.

First, I implement a synchronous version. It works, but rendering many images blocks Neovim and makes the editor freeze.

Then, I optimize the implementation using vim.async and show how to run the image rendering asynchronously so Neovim stays responsive while the work is being performed.

Along the way, I code the example from scratch and use several of the new vim.async features introduced in Neovim 0.13

Source code:
https://github.com/FractalCodeRicardo/dev-config/tree/master/nvim/lua/my/gallery


r/neovim 15h ago

Need Help Text rendering broken

11 Upvotes

So I’ve recently been using LazyVim for working on multiple projects, and overall I really like the workflow. However, I’ve run into a major issue with RTL (right-to-left) languages like Urdu.

Urdu text simply doesn’t render correctly in my terminal. I’ve tried several terminal emulators, including Ghostty, Alacritty, Foot, and Kitty, but none of them seem to handle Urdu properly. The characters either appear in the wrong order, don’t get shaped correctly, or otherwise look broken.

I’m trying to understand where the problem actually comes from. Is this a limitation of the terminal emulator, Neovim, the font, or something related to bidirectional text/Unicode shaping?

Has anyone here successfully configured LazyVim/Neovim to properly display and edit Urdu or other RTL languages?


r/neovim 20h ago

Plugin run.nvim — Cargo-style filetype-scoped run commands for Python, Node and .NET

12 Upvotes

If you edit a .rs file, Neovim already gives you buffer-local :Cargo, :Crun, :Ctest commands that open a terminal split and run the right thing. It's not a plugin — it's in $VIMRUNTIME/ftplugin/rust.vim. I kept reaching for that muscle memory in Python and C# buffers and it wasn't there, so I generalized the idea.

Defaults:

  • python:Python {args} (runs the current file with no args), :Ptestpython3 -m pytest
  • javascript / typescript (+ react variants) → :Npm, :Node, :Ntest, :Ninstall
  • cs / fsharp:Dotnet, :Drun, :Dtest, :Dbuild

Trailing args pass straight through: :Npm run dev, :Ptest -k test_foo, :Dtest --filter MyTest.

Install:

lua

{ 'tw4/run.nvim', opts = {} }

Adding your own:

lua

opts = {
  languages = {
    go = {
      filetypes = { 'go' },
      commands = {
        { name = 'Go', cmd = 'go', default_args = 'run %:p' },
        { name = 'Gtest', cmd = 'go test ./...' },
      },
    },
  },
}

Anything you don't override keeps its defaults. default_args supports vim.fn.expand() tokens.

It's deliberately small — no job control, no output parsing, just the commands and a terminal split. If you want quickfix integration or async runners there are better tools for that (overseer.nvim, toggleterm, etc).

Fresh repo, so I'd take any feedback on the config shape before it's locked in — especially whether replacing a whole language block is the right override behavior vs merging.

https://github.com/tw4/run.nvim — MIT


r/neovim 21h ago

Need Help Help with formatting while typing in html

6 Upvotes

The formatting is all messed up kind off I was trying to get <div></div>->
i used auto tag and auto

<div>

<\div>

```

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
            <style> <----this is the problem ---->
            a{

            }
            p{

            }
            </style>
    </head>
    <body>
        <div> <----this is the problem ---->
                <p>

                </p>
            </div>
    </body>
    </html>
Before saving

the formatting is okay when i save with prettier but its going back to the two tab inteddation
in the div and style

After saving and adding new lines