r/neovim • • 21d ago

Dotfile Review Monthly Dotfile Review Thread

16 Upvotes

If you want your dotfiles reviewed, or just want to show off your awesome config, post a link and preferably a screenshot as a top comment.

Everyone else can read through the configurations and comment suggestions, ask questions, compliment, etc.

As always, please be civil. Constructive criticism is encouraged, but insulting will not be tolerated.


r/neovim • • 4d ago

101 Questions Weekly 101 Questions Thread

6 Upvotes

A thread to ask anything related to Neovim. No matter how small it may be.

Let's help each other and be kind.


r/neovim • • 6h ago

Tips and Tricks I replaced flash.nvim with ~60 lines of lua snippet

6 Upvotes

I used flash.nvim for a while, but it always felt like a lot of machinery for what I actually needed. Most of the time I just /-search my way around a file, so I wrote ~60 lines of lua that labels every match of my search and lets me jump to it.

So I wrote a tiny Lua snippet that labels every match of your last search with a number:

  • /pattern (or ?pattern), then hit <C-j> (or <S-CR>)
  • every match in the visible window gets a 1, 2, 3… label (extmarks, highlighted with CurSearch)
  • labels clear on your next keypress
local NS = vim.api.nvim_create_namespace("jump")

local do_match = function(pat, forward)
  local matchs = {}
  local cursor = vim.api.nvim_win_get_cursor(0)
  local flag = forward and "Wz" or "Wb"
  local stopline = forward and vim.fn.line("w$") or vim.fn.line("w0")
  while true do
    local pos = vim.fn.searchpos(pat, flag, stopline)
    local lnum, col = pos[1], pos[2]
    if lnum == 0 and col == 0 then
      break
    end
    table.insert(matchs, { lnum - 1, col - 1 })
  end
  vim.api.nvim_win_set_cursor(0, cursor)
  return matchs
end

local do_label = function(matchs)
  for i, pos in ipairs(matchs) do
    vim.api.nvim_buf_set_extmark(0, NS, pos[1], pos[2], {
      virt_text = { { tostring(i), "CurSearch" } },
      virt_text_pos = "overlay",
      hl_mode = "replace",
    })
  end
end

local count_label = function(forward)
  local pattern = vim.fn.getreg("/")
  local hls = vim.v.hlsearch
  vim.v.hlsearch = false

  if forward ~= false then
    do_label(do_match(pattern, true))
  end
  if forward ~= true then
    do_label(do_match(pattern, false))
  end

  vim.on_key(function()
    vim.on_key(nil, NS)
    vim.api.nvim_buf_clear_namespace(0, NS, 0, -1)
    vim.v.hlsearch = hls
  end, NS)
end

local label_search = function()
  vim.api.nvim_feedkeys(vim.keycode("<cr>"), "n", false)
  local cmdtype = vim.fn.getcmdtype()
  if cmdtype == "/" or cmdtype == "?" then
    local forward = (cmdtype == "/")
    vim.schedule(function()
      count_label(forward)
    end)
  end
end

local map = vim.keymap.set
map({ "n", "x" }, "<s-cr>", count_label, { desc = "label last search" })
map({ "n", "x" }, "<c-j>", count_label, { desc = "label last search" })
map("c", "<s-cr>", label_search, { desc = "label current search" })
map("c", "<c-j>", label_search, { desc = "label current search" })

r/neovim • • 11m ago

Plugin auto-ime.nvim: Auto-switch your IME back to English/Latin when leaving insert mode (Windows/WSL/Linux/macOS/SSH)

1 Upvotes

This started as nostalume/auto-ime.nvim. I contributed the WSL support and Windows Korean/Japanese IME handling upstream, and my fork adds im-select state save/restore, fcitx-remote, and SSH (OSC 1337).

If you type in CJK or other non-Latin layouts, leaving insert mode and hitting hjkl while still in your IME is always annoying.

I extended auto-ime.nvim to automatically switch your input method back to Latin/English on InsertLeave / CmdlineLeave across all major environments:

  • Windows: Zero-config out of the box via LuaJIT FFI (user32.dll / imm32.dll), or im-select.exe for IME state save/restore
  • WSL: fcitx5-remote, im-select.exe, or PowerShell interop
  • Linux: fcitx5-remote, fcitx-remote, ibus
  • macOS: macism, im-select
  • SSH: Terminal OSC (OSC 1337 for WezTerm, iTerm2, Kitty, Rio)

Just require("auto-ime").setup() and verify with :checkhealth auto-ime.

Repo (my fork): https://github.com/partrita/auto-ime.nvim Upstream: https://github.com/nostalume/auto-ime.nvim


r/neovim • • 1d ago

Random Hosting a NeoVim and Keyboard meetup in Paris 9th December

61 Upvotes

Hello,

I know some of my parisian fellow neovim users are lurcking this NeoVim SubReddit.

I just want to share that the Neovim Paris is hosting a IRL meetup, for the end of 2026, a lot of looong time vim users and neovim users are going to be present, feel free to join.

Some are using kakoun.

More information on: https://tuppervim.org/
Discord server: https://discord.gg/rRuq3GwqfZ

It's limited to 30 people, and we'd like to meet new people, and get more presentation about other people neovim usage.


r/neovim • • 1d ago

Plugin Massive feature extension of jiejie.nvim - jujutsu VCS plugin

Thumbnail
github.com
31 Upvotes

I'm happy to report that jiejie.nvim received a number of significant new features this week. The current version now covers a most of jujutsu's functionality:

- workspaces - great for working with AI agents (new 🤖)
- visual mode for interacting with multiple files / commits (new 🎉)
- interactive squashes and splits (new 🎉)
- absorb, fix and metaedit (new 🎉)
- blame / file annotate (new 🎉)
- bookmarks and tags management
- custom log views
- operation and evolog
- flexible rebasing
- many other jujutsu's sub-commands

Jujutsu and jiejie have been my daily drivers this year. After getting used to Jujutsu's way, I can't imagine going back to git any time soon.

I wish you all a blessed Advent season and time to try out lots of new plugins over the holidays 🌲❄️


r/neovim • • 11h ago

Video I moved all my AI agent sessions into my Neovim daily notes

Thumbnail
youtu.be
0 Upvotes

I never enjoyed working in the agent apps. They get work done, but finding things, navigating and editing text in them is slow, and once a session is gone I have to remember on my own what was left pending. So I moved all of it into the place I already live in: my daily notes in Neovim.

How it works right now:

  • Each request is a line under its own heading in today's note. <leader>aa sends it to Claude Code, asks which repo to work in, and the agent writes its answer back into that section of the note.
  • With everything folded, each heading shows the repo, the status and the time it finished, so I can scan everything I did today or yesterday at a glance and unfold any one to read the log and the outcome.
  • Unfinished work stays pending across days and Neovim restarts. A picker (<leader>ap) jumps to any pending request, and my kitty tab shows the pending count, so I notice even when I'm in another note.
  • Several requests can run at the same time on the same repo without blocking each other (no worktrees).
  • <leader>ag shows a diff of what one run changed, <leader>aG a picker with the history of diffs, and <leader>af opens the agent's full conversation in a float.
  • I can paste screenshots into a request, and continue a conversation from my phone.

It's not a plugin. It's a prototype (slop) Claude built under my instruction, and I'm sharing it as inspiration for working with agents from your own editor. The code is in my dotfiles:

Demo video (25 min):
https://youtu.be/6hhzBRIdEKk

How are you working with agents from Neovim? A plugin, a terminal split next to Neovim, or something custom?


r/neovim • • 2d ago

Video remark.nvim a plugin to review code from coworkers or agents

Thumbnail
youtu.be
55 Upvotes

TLDR:

Most of the time I spend developing now is reviewing others code or AI code. I want to do that in Neovim

remark.nvim is a plugin I made that makes this easy

https://github.com/smnatale/remark.nvim


r/neovim • • 2d ago

Discussion Using terminals rather than tmux

53 Upvotes

Long time vim user (12 years) and tmux too. I've always combined my coding sessions within tmux because of panes, windows and all of that.

Recently, I've setup nvim-dap and nvim-dap-view which helped me avoid use of gdb or lldb outside of neovim plus the very convenient debugging session directly in the editor.

I've also started using the embedded terminal because it's way easier to copy/paste motions directly from the terminal view rather than going through the tmux pane. There are still some habbits that are hard to forget. For example, exiting the terminal view is a different keybind. I've mapped two shortcuts to get it quicker:

local function map(mode, suffix, help, func)
    vim.keymap.set(mode, suffix, func, { desc = help })
end

map("t", "<C-Esc>", "Escape terminal", [[<C-\><C-N>]])
map("t", "<C-O>", "Escape terminal (alternative)", [[<C-\><C-N>]])
map("t", "<C-T>", "Escape terminal and focus last window", [[<C-\><C-N><C-W>p]])

Now I feel like my tmux needs are pretty much unnecessary. I can do almost everything from neovim. Even though I rarely use tabs, sometimes I do just to separate the window layout without altering the main one.

I'm curious about your usage, advises or ideas and if you're using the embedded terminal with neovim or not.


r/neovim • • 2d ago

Discussion Is Neovim good for every language, or are there languages where you still can't replace a full IDE?

95 Upvotes

I'd like to know whether Neovim is good for any language, or whether it still can't fully replace an IDE in some cases. Do you have a language or platform where you just can't swap your IDE for Neovim?

In my case it's C#. Without an IDE I feel like I'm missing a lot. There are ready-made plugins, but they don't feel right for Neovim. They seem to imitate an IDE environment, with custom floating windows and panels like in a GUI. Personally, I don't think that's a plus in a TUI, but I might be wrong.

Will languages like Java and C# always be IDE-oriented? Other languages are perfectly fine with just Neovim or Zed, but with these two, Neovim feels somehow out of place. What is that related to? Why do languages like Rust and TypeScript feel natural in Neovim, while Java and C# don't?


r/neovim • • 2d ago

Need Help Help: Kitty/Ghostty paired with snacks.nvim issue on ipynb.nvim

16 Upvotes

Does anybody know what happen here?

Whenever I add/delete new lines, there seems to be a line persistence issue. Strangely, this does not happen to the native terminal in MacOS; only Kitty and Ghostty experience this.


r/neovim • • 2d ago

Blog Post Minimal Neovim Setup

Thumbnail gabrielchoong.com
65 Upvotes

Hello everyone. I spent a few days writing a blog about configuring a minimal Neovim setup. I have been using Neovim since the 0.10.0 update which was a bit over 2 years ago.

I would like to ask for feedback regarding of what could be improved. This is my first time writing a technical blog hence I would like to request for some real world feedback from the community.

All of the writing is written without any AI assists. Although some of the code snippets included in the blog post might contain traces of AI assisted code since they were yanked directly from my Neovim config which I did use it to help me debug certain issues a while ago.

Thanks in advance.

Gabriel


r/neovim • • 3d ago

Plugin lathe.nvim: a Java language server that takes its settings from your build

Post image
50 Upvotes

Lathe 0.4.0 is out. I posted about an earlier version here, so this is an update for anyone who missed it or wanted to try it.

Lathe is a Java language server with a first class Neovim support. Instead of building its own model of your project, it takes the compiler settings from your build and uses javac, so the editor sees your code the way the build does. Disclosure: Lathe is largely written by AI coding agents, and I review every change.

You don't need to change your build to try it: install lathe.nvim, open a Java file and run :LatheInit. You get completion, compiler errors, navigation and refactoring, plus run, test and debug (with neotest and nvim-dap).

0.4.0 supports Maven 3.6.3+, Gradle 8.8+, the OpenJDK build, runs on JDK 17+, and picks up the formatter your build uses.

Neovim 0.12+ on Linux or macOS. Beta, open source.

Plugin: https://github.com/ag-libs/lathe.nvim
Docs: https://github.com/ag-libs/lathe
Comparison with JDT LS: https://github.com/ag-libs/lathe#compared-with-jdt-ls

If you try it on your project, I'd like to hear how it goes.
Thank you for reading.


r/neovim • • 3d ago

Plugin Updates to leblocks/toggle.nvim

Post image
34 Upvotes

It's been 9 months since I posted about my toggling plugin: Yet another toggle plugin leblocks/toggle.nvim : r/neovim

leblocks/toggle.nvim

I've added couple of new features since then:

  • Option to preserve cursor position after toggle
  • Toggling in visual selected text
  • End of word toggling
  • Mappings by filetype - different toggles based on a current file filetype

I hope that with the help of community we can build very good and rich default mappings that will cover most of toggling use cases. I myself more of a dotnet, and a powershell developer and tried to bring some defaults that seemed logical to me, but with help of the community that can be done muuuuch better.


r/neovim • • 3d ago

Need Help Language-aware code alignment in Neovim?

14 Upvotes

Hi everyone! I have a use case that I'd like to automate somehow, and I'd like to know if anyone knows how to achieve this.

I'm looking for a Neovim solution that can do the following:

type User struct {
    ID string `json:"id,omitempty"`
    Status UserStatus `json:"status"`
    CreatedAt time.Time `json:"created_at"`
    Password UserPassword `json:"-"`
    Admin bool `json:"admin"`
}

// ... into this:

type User struct {
    ID        string       `json:"id,omitempty"`
    Status    UserStatus   `json:"status"`
    CreatedAt time.Time    `json:"created_at"`
    Password  UserPassword `json:"-"`
    Admin     bool         `json:"admin"`
}

Basically, I'm looking for automatic, language-aware alignment, similar to how you can comment or uncomment a block of code in Neovim using visual selection + gc.

I'm not looking for something specific to Go or struct fields, but rather a general-purpose solution.


r/neovim • • 3d ago

Need Help Looking for an HTML template plugin (simpler solution always welcome)

4 Upvotes

So I used NvChad for what seemed like forever.
But ever since version 0.12 I've been keeping things VERY minimal. I haven't done any web dev stuff in a long time, so I guess it would make sense that something like this would go unnoticed.

I'm not the biggest Lua fan...I mean I'd like to get better at it eventually, so for the time being I just sort of tolerate it and ever since the major update things have been kind of confusing.

But to get to the main point of this post; I was curious if there was some kind of plugin that could help me create an HTML template? It would be great if I didn't need another and there was a simpler solution that I'm not seeing.

Currently the plugins I'm using that I suspect would be related to the subject are:

mason, nvim-lspconfig, mason-lspconfig, and mason-tool-installer.

I'm also using the superhtml lsp, and while the popup works, apparently I guess it doesn't have any kind of "!DOCTYPE html" selection. I even tried the emmet-language server and that didn't work either.

I've never used it but, by any chance would blink.cmp solve this?

Any advice or feedback of course would be greatly appreciated. Many thanks in advance.


r/neovim • • 4d ago

Random Neovim 0.12.7 released

Thumbnail
github.com
238 Upvotes

r/neovim • • 4d ago

Tips and Tricks Minimal mark picker

Post image
53 Upvotes

I'm using this tiny marks config (just 14 lines). What do you think? Is it better to just use the picker from Telescope/Fzf, or should we go with the barebones approach (:marks and m + LETTER)?

Anyway, I'm surprised by how easy it is to build a mark picker using the Neovim API!

-- set mark mLETTER
-- show marks sm

local function show_marks()
  local marks = vim.fn.getmarklist()
  local list = vim.tbl_map(function(m)
    return m.mark .. " -> " .. m.file
  end, marks)
  vim.ui.select(list, { prompt = "Marks" }, function(item, index)
    if index == nil then return end
    vim.cmd("normal! " .. marks[index].mark)
  end)
end

vim.keymap.set("n", "sm", show_marks)

r/neovim • • 4d ago

Plugin scaled_markdown.nvim

Thumbnail gallery
43 Upvotes

r/neovim • • 5d ago

Meme Monthly meme thread

5 Upvotes

Monthly meme thread


r/neovim • • 5d ago

Color Scheme Stencil: yet another Alabaster with ANSI colors

Thumbnail
gallery
31 Upvotes

Here is another theme inspired by Tonsky's Alabaster: Stencil. The main idea is to make color actually work by highlighting only what's important:

  • Green: type declarations
  • Red: function and method declarations
  • Blue: variable, field, and property declarations
  • Purple: constants
  • Cyan: strings
  • Yellow: comments

I run Neovim in Ghostty using native window splits, and keeping terminal and Neovim colorschemes in sync is annoying. Since this palette only needs a handful of colors anyway, I hooked the theme directly to the terminal's ANSI colors.

I don't use many plugins, so some highlight groups might be missing. Markdown is also intentionally unhighlighted since it's designed to be readable as plain text.

I've been using it for a week and I'm quite satisfied with it so far. The screenshots show it running with Ghostty's built-in Moonfly and Alabaster themes.

Contributions are welcome, or feel free to fork it and adjust it to your own taste.


r/neovim • • 6d ago

Need Help How do you navigate files in nvim?

96 Upvotes

I find it tedious to repeatedly press leader+ff to fuzzy find the file I'm looking for. I was wondering if there is any "nvim way" to do this better.


r/neovim • • 6d ago

Need Help Helix multicursor bindings for nvim 0.13

12 Upvotes

Have anyone managed to replicate the helix binds with s to add multicursors within selection?


r/neovim • • 7d ago

Plugin imselect.nvim – Your input method follows what you edit, not just your Vim mode

95 Upvotes

Hey r/neovim!

I'd like to share a plugin I've been working on: imselect.nvim.

As a Chinese speaker who also writes a lot of LaTeX, I often find myself switching between Chinese and ASCII several times without ever leaving Insert mode. Automatically switching to ASCII on Escape helps, but it only solves part of the problem.

So I built a plugin that takes both Vim modes and Tree-sitter syntax into account when switching input methods.

What it does:

  • Switches between ASCII and your input method as you move between code, comments, strings, and prose, even within Insert mode.
  • Handles LaTeX math environments, including text inside \text{...} and snippet field jumps.
  • Restores your input method for / and ? searches while keeping : commands in ASCII.
  • Supports Linux, macOS, Windows, WSL, Neovide, and even remote Neovim sessions over SSH through Kitty.

There's also a small design detail that I'm particularly happy with.

The plugin doesn't continuously enforce an input method state. Instead, it switches when the editing context changes or when necessary at mode boundaries. This was originally a performance optimization to avoid unnecessary IME queries, but it had a nice side effect: you can manually switch your input method without the plugin fighting you.

For example, you can manually switch to Chinese inside a code region, continue typing and using completion, and the plugin will leave your choice alone until the context changes. Press Escape, and you're back in ASCII.

The demo shows a continuous LaTeX editing session with zero manual input method switches. It's recorded using a real Fcitx5/Rime input method, not simulated text input.

GitHub: https://github.com/dirichy/imselect.nvim

I'd love to hear how other multilingual Neovim users handle input method switching, especially those using Japanese, Korean, or input methods I haven't had a chance to test.

Feedback, bug reports, and suggestions are very welcome!