r/neovim • • 9d ago

Dotfile Review Monthly Dotfile Review Thread

15 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 • • 13h ago

101 Questions Weekly 101 Questions Thread

11 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 • • 9h ago

Need Help Live preview of a Markdown file

8 Upvotes

Hello guys, I am new to neovim and I am looking for a plugin/a way to display a live preview of a Markdown document that I am editing in a split window.

Thanks in advance 🙏


r/neovim • • 10h ago

Need Help Plugin for managing SSH/VM connections from Neovim: list with live state (attached / idle / dropped), reattach, open terminals and edit remote files?

4 Upvotes

I'm looking for a way to manage remote connections (SSH hosts and local VMs) from inside Neovim. I want a panel or picker in Neovim that:

  • lists my hosts, from ~/.ssh/config and from ones I've used before
  • shows each connection's live state: open right now, idle but still attachable, dropped (network died) as opposed to cleanly exited, or just saved/recent
  • opens a terminal to a host with one key, and reattaches to the same shell later, even after I close the terminal buffer or restart Neovim
  • lets me browse and edit files on that host from the same list
  • can reconnect a dropped session, ideally in place

If there is none, I'll start building one and I'd appreciate guidance.


r/neovim • • 14h ago

Need Help Vertical split and cursor in coc.nvim

4 Upvotes

Hello I recently noticed that when you made:

Vertical split

Put the cursor in the last line ($)

The cursor appears words before but actually is in the last character of the line

After use x to remove chars:

You can see that the text actually remove is the ";" at the end of the line

If I remove the virtual text does not appear this bug

Any one with the same bug?


r/neovim • • 7h ago

Plugin Floating-Claude.nvim using and showing Claude Events

0 Upvotes

Hello guys,

I have been working on the plugin floating-claude.nvim as I wanted something more integrated to my coding workflow than the coder/claudecode.nvim. It's only a terminal provider for the claudecode.nvim, but it has a minimized mode and an intent of better user experience with a floating Claude window.

The latest change I applied was about listening to Claude events, instead of parsing the terminal buffer, so I can show you the latest events and messages that claude sends through the events. These events are a bit different to the ones you can see on terminal, so I find them quite interesting to check, as you can also do through a command FloatingClaudeEvents, and the result are as you can see:

This information can be useful for other people that wants to build some tools over these Claude events, like a hardware semaphore for the Agents state (busy/available).

Claude Events

Anyway, if someone wants to use it, feedback or suggestions are welcome.

ps.: As you can see, I use Claude to vibecode plugin, as I'm not an expert on Lua. I'm designing and reviewing the code based on my user experience.


r/neovim • • 8h ago

Discussion What plugins are you using for AI integration?

0 Upvotes

By current setup is very basic, AI in the separate tmux pane/window, since I want to use AI as an assistant, where I type the code. But, I'm curious how are people integrating AIs into Neovim, what plugin stack are you using?


r/neovim • • 2d ago

Plugin Coc extensions for Java, Spring, Maven, SonarQube

17 Upvotes

I've used coc.nvim for Java work for a while, and for a few things I wanted a more expressive/working java eco system. So I ported some core VS Code extensions to coc, and kept them maintained for a while now. Six of them are ports, the last one (coc-htmlview) is new. They're all on GitHub and npm, in case they're useful to anyone else on coc.


coc-sonarlint

Port of SonarSource/sonarlint-vscode.

SonarQube for IDE (formerly SonarLint): runs Sonar's language server and reports quality and security issues as you type.

  • Languages: C, C++, Java, Go, JavaScript, TypeScript, Python, PHP, HTML, CSS, CloudFormation/Kubernetes/ARM YAML and JSON, and secrets in any file
  • Connected Mode: uses the rule sets and project settings of a SonarQube Server or SonarQube Cloud project
  • Rule descriptions, hotspot details and connection details open in a split or float, styled like a browser page, with tabs you switch with <CR>
  • A findings tree for the workspace, quick fixes as code actions
  • Language server and analyzers ship with the extension, you only need a Java 17+ runtime

coc-springboot

Port of vscode-spring-boot from spring-projects/sts4.

Spring Boot support: runs the Spring Boot language server of the Spring Tools project.

  • Spring-aware completion, hover and validation in Java files, application.properties, application.yml and *.factories
  • Symbol search for request mappings and beans
  • Live data from running Spring Boot apps: hovers over Spring annotations show data from the running app
  • Language server bundled, needs coc-java and Java 21+

coc-maven

Port of microsoft/vscode-maven.

Maven support: a project explorer, goal runner and pom.xml editing features.

  • Project explorer: modules, dependencies, plugins and their goals, profiles
  • Run goals, lifecycle phases and saved favorite command lines in a terminal, with a history per pom
  • pom.xml completion (including group/artifact/version from Maven Central and your local repository), hover, go-to-definition, code actions and dependency conflict diagnostics
  • Effective pom and dependency tree in read-only buffers
  • Create projects and modules from archetypes, and find the artifact behind an unresolved Java type

coc-java-explorer

Port of microsoft/vscode-java-dependency.

Java project explorer: a tree of the Java projects in the workspace.

  • Source roots, packages, classes, the JRE, Maven/Gradle dependencies and referenced libraries
  • Create classes and packages, rename and delete from the tree
  • Add or remove referenced libraries, create projects, export jars

coc-spring-dashboard

Port of microsoft/vscode-spring-boot-dashboard.

Spring Boot dashboard: run the apps of the workspace and look into them while they run.

  • Tree views of the Spring Boot apps in the workspace: start, stop and debug them
  • Live beans, endpoint mappings, properties and memory of running apps
  • Signs on bean definitions and request mappings in the code
  • Attach to apps running elsewhere

coc-spring-initializr

Port of microsoft/vscode-spring-initializr.

Spring Initializr: create new Spring Boot projects and add starters to existing ones.

  • Generate a Maven, Gradle or Gradle Kotlin DSL project from start.spring.io: Boot version, language, coordinates, packaging, Java version, dependencies
  • Search dependencies, reuse the ones from the last project
  • Add starters to the pom.xml of an existing project

coc-htmlview

Not a port, written for these extensions.

HTML viewer: renders HTML and CSS into a Neovim buffer, so other coc extensions can show formatted docs (coc-sonarlint uses it for rule descriptions).

  • A real CSS cascade, with specificity and !important
  • Tables, lists, borders, flex rows and inline blocks on a character grid
  • Code blocks highlighted with treesitter, colors follow your colorscheme

Install: :CocInstall coc-<ext>. The Java and Spring ones expect coc-java for the Java language server. Each extension has a :help page that covers commands and settings. They're written and tested on Neovim mostly.

Bug reports and issues are welcome on GitHub.


r/neovim • • 2d ago

Video Retro Terminals with Neovim + Kitty

Thumbnail
youtube.com
49 Upvotes

Some of you asked me about the retro terminal effects I used in my previous videos.

In this video, I'll show you:

- The tool I use to add mechanical keyboard sounds.
- The fonts I use.
- How to use the CRT shader.
- How to use the TFT shader.
- Color schemes for Kitty and Neovim.

Hope you like it!


r/neovim • • 2d ago

Discussion Finally dropped DBeaver by splitting my SQL workflow between vim-dadbod and sqlit

9 Upvotes

I kept bouncing off trying to replace DBeaver with a single terminal tool. vim-dadbod is great when I'm writing multi-query .sql files, switching connections per buffer, and wrapping updates in explicit BEGIN/ROLLBACK blocks, but browsing wide tables, checking JSONB columns, or editing a single cell in a .dbout buffer always felt clunky.

What finally made me uninstall DBeaver was splitting the job in two instead of forcing one tool to do everything.

For actual query work I stay in Neovim with vim-dadbod + vim-dadbod-ui. I mapped <leader>dr to run the buffer or visual selection, <leader>dl for the current line, and <leader>do to jump straight to the .dbout split. Keeping separate check.sql and mutate.sql buffers and swapping the target DB with :DBUIFindBuffer is way faster than juggling DBeaver script tabs, and explicit transactions beat remembering whether Manual Commit mode is toggled on.

For quick data inspection, jumping through foreign keys, inspecting JSON fields, or editing one row inline without writing an UPDATE statement, I just pop open sqlit in a terminal split. It covers the 20% of GUI habits that dadbod wasn't built for, without eating 1.5 GB of RAM on Java startup.

Curious if anyone else splits their DB workflow like this, or if you've moved completely to one of the newer TUI/Neovim SQL clients?


r/neovim • • 2d ago

Discussion escape alternatives

15 Upvotes

I'm sure this has probably been done to death, but I'm just wondering everyone's thoughts on escape alternatives for exiting insert mode - particularly caps and ctrl+[

I'm currently using caps locks as escape and from a writing perspective it is incredible and so fast, but I have had problems with getting this set up when moving to different systems.

I'm doing a cs degree and eventually would love to do this full time, and definitely don't want to be stumped if I get a computer with vim but can't use it because caps isn't mapped to esc. I recently found out that ctrl + [, ctrl + c and alt + J all exit insert mode by default, and want to know if anyone uses these with success, and how they can compare to capslock.

Thanks in advance


r/neovim • • 3d ago

Discussion What are your live coding setups for making music or visuals?

16 Upvotes

Hey folks. I'm very curious as to how people have their live coding setup. Is it Tidal or Strudel? What plugins do you use? I'm aware of some but I want to see what people say. If you do visual art then how do you do it? Any resources I can read more into how to setup Neovim for live coding? Thanks!


r/neovim • • 4d ago

Discussion Plugins Marketplace for Neovim

Thumbnail
gallery
255 Upvotes

I'm currently developing a plugins marketplace for Neovim. It currently has around 1300+ plugins that is live from Awesome-neovim's curated list, categories for filters, search bar, a specific page for the specific plugin, and a plugin's own README file in github. I am thinking of making it simple and not over complicating the details for each plugin, but it may be best to actually add more details for newcomers. What do you guys think?


r/neovim • • 4d ago

Need Help With 0.13's built-in multicursor, what's the idiomatic way to add matches for a visual selection one at a time?

32 Upvotes

Hello!

I used vim-visual-multi before and I have migrated to the built-in multicursor in 0.13.

However, I used to have the following workflow that I don't know how to replicate or adopt with the new multicursor.

Given:

local cursors = vim.api.nvim_buf_get_extmarks(0, multicursor_ns, 0, -1, {})
local anchor = vim.api.nvim_buf_get_extmark_by_id(0, selection_search_ns, group.anchor, {})

With the cursor at the 1st local, in vim-visual-multi, in visual mode, I'd select my target (local), press C-n to trigger matching of the current local; then press C-n again to match the next local. After confirming the selections is correct visaully, I'd make my changes to both selections.

Now with the built-in multicursor, I have vim.keymap.set("n", "<C-n>", "1Q*1q=") but it'd just place the cursor at the beginning of the selection, instead of keeping my selections.

The reason I'm not using zq* is because I want to visually confirm one by one, instead of selecting all by default.

I understand that is vim-visual-multi way and I'm not exactly trying to replicate that. I'm asking what's the built-in multicursor idiomatic way of handling it? Using * to find selection and then pressing Q to add cursors?

Any help is much appreciated. Thank you!


r/neovim • • 4d ago

Random Vim desktop calendar for 2027 available

17 Upvotes

It prints on one sheet of paper and, after folding and applying a bit of glue, stands on your desk.

It is available in English. You can find the PDF files on GitHub

https://github.com/hotoo/vim-desktop-calendar


r/neovim • • 4d ago

Blog Post Rewriting my whole neovim setup

84 Upvotes

So I updated my neovim setup after 3 years of using LazyVim and the journey been quite enjoyable. I've documented that journey in a blog post. Click here to read the journey.


r/neovim • • 5d ago

Video Learn to use the Quickfix List programmatically (Basics)

Thumbnail
youtube.com
141 Upvotes

The Quickfix List is one of Neovim's most useful features, and it's very easy to customize programmatically.

With just a few lines of code, you can add pretty much anything you want to the list and navigate through your project more efficiently.

This is a short and straightforward video where I show you a basic example of how to manipulate the Quickfix List using code.

With this, you'll be able to populate the list with whatever entries best fit your workflow.


r/neovim • • 3d ago

Plugin foyer.nvim: Integrate your coding agent CLI with Neovim

0 Upvotes

The best way to do AI programming in neovim is to integrate the coding agent you're used to, rather than implementing a coding agent within neovim, because many coding agent CLIs are already quite good now, such as pi. Based on this idea, I had AI write this plugin, and this plugin was also completed with this combination (calling pi through foyer.nvim within neovim).

foyer.nvim runs your coding agent CLIs (pi, Claude Code, opencode, any of them) inside Neovim, one per project, and lets you write prompts to them in a normal Vim buffer. If you keep your agents in tmux panes beside the editor, this replaces that.

1. Setup

require('foyer').setup({
    commands = {
        p = { 'pi', '-c' },
        c = { 'claude', '-c' },
        t = { 'pi', '-c', cwd = vim.env.HOME, scope = 'global' },  -- a side chat
    },
})
vim.keymap.set({ 'n', 'v' }, '<leader>a', require('foyer').prompt)
vim.keymap.set('n', '<leader>b', require('foyer').jump)

Each letter but the global t is per project. With two repos open, api and frontend, p is a separate agent in each, started in its root on first use. With -c, the CLI picks up that directory's last conversation after a restart.

2. Ask

In api, press <leader>a p. A buffer opens beside your code: write with everything Vim has, and <CR> (<C-s> in Insert mode) sends it as one prompt, newlines intact.

3. Point at code

Select lines before <leader>a p, and they go along, labelled:

keep this one as it is, it's called from the worker too

Selected in my editor: /repo/api/src/retry.c, lines 118-131
```c
…the lines you selected…
```

Or type @ mid-prompt to mention an open file: <CR> puts in @src/retry.c, <C-l> adds the line, @src/retry.c:120.

4. Move on, and check back

While pi works, switch to the frontend tab page; <leader>a c starts Claude Code there. An agent's key shows its terminal while it works, a fresh prompt after. pi reports its state, so foyer says "pi · api is done" wherever you are and marks the api tab page; <leader>b gets you there with one key. O in a terminal opens a prompt above it, the answer still in view.

5. Ask on the side

<leader>a t is one chat for the whole session, from any project, for questions about neither. It borrows the current window and gives it back.

6. Reuse, and quit

Each agent keeps its own history across sessions: <Up> walks it, <C-f> lists your most used prompts, and prompts in setup() pins your own on top. :qa is refused while an agent is busy; tomorrow, -c picks each conversation back up.

Shells, gdb and REPLs get the same buffer and history, and every key foyer maps can be changed: see :help foyer, and install it from the README.


r/neovim • • 6d ago

Discussion Skip Microsoft for Finance Majors?

8 Upvotes

I'm teaching data analytics in finance this Spring. The downside of such a course is you need to pick some software students will use even if they end up switching later in their careers.

It could be done completely in Excel, but we will also use Python and SQL.

I'm tempted to share dot files of my Kitty (sending from text editor window to ipython terminal window for analysis), Neovim, Visidata, SQLite setup as a first interaction with Python and SQL rather than VS Code, Spyder, etc.

Is this a terrible idea?


r/neovim • • 6d ago

Discussion Neovim adopting libghostty, does this mean we will have images inside embedded terminal?

126 Upvotes

Let's say I'm using Neovim, inside tmux, running inside Alacritty. Neither Alacritty nor tmux support kitty graphics protocol, but libghostty. Does this mean that we will have images supported inside :terminal, regardless if Neovim is running inside terminal emulator that does not support it?


r/neovim • • 6d ago

Need Help Lualine hides on entering command mode

5 Upvotes

[Title]
It works perfectly fine when i open neovim but after entering and exiting command mode it only shows up when i enter command mode again or restart nvim.
(Pls ask if you require anymore details)


r/neovim • • 7d ago

Need Help┃Solved What's the proper Vim workflow? When should I use Normal Mode vs Insert Mode?

54 Upvotes

Hi everyone!

I'm relatively new to Vim, and I'm trying to build a completely keyboard-driven workflow, especially when writing C++ for competitive programming.

I have a few questions about how Vim is supposed to be used efficiently.

1. Moving past closing parentheses while in Insert Mode

For example, when writing:

vector<int> a(n + 1);

Let's say my cursor is right before the closing parenthesis:

a(n + 1|)

I want to move past ) and continue typing.

I can simply press the Right Arrow key, but I'm trying to avoid using arrow keys altogether.

What's the most natural and efficient way to handle this?

Should I leave Insert Mode, use a Normal Mode motion, and then return to Insert Mode? Should I use Ctrl-O? Or is there a better approach?

2. When should I use Normal Mode vs Insert Mode?

I'm still struggling to understand the intended workflow.

Am I supposed to use Normal Mode for almost everything and enter Insert Mode only when I'm actually typing?

Or should I stay in Insert Mode while writing and switch to Normal Mode only when I need to make a bigger edit?

I'd love to understand how experienced Vim users approach this in their everyday coding workflow.

3. How frequently should I switch between modes?

Sometimes I feel like I'm switching between Normal and Insert Mode too often, and it's actually making me slower compared to a regular editor.

Is this just part of the learning curve, or am I using Vim incorrectly?

I'd appreciate any tips, workflows, or personal experiences, especially from people who use Vim for programming.

Thanks!


r/neovim • • 7d ago

Video Bouncing balls Inside Neovim (Kitty graphics protocol)

58 Upvotes

I've been exploring the Kitty Graphics Protocol from within Neovim, and I've finally managed to create a smooth animation.

I'm sharing the code and the full session where I wrote it.

I think it could be really useful for anyone interested in this topic.

Full source code:
https://github.com/FractalCodeRicardo/dev-config/tree/master/nvim/lua/my/kitty-protocol/bouncing-balls

Coding session:
https://youtu.be/AIFisq5KjIA

This is the code where I send the escape sequences to the terminal:

local M = {}
local api = vim.api
local id = 1

local cell_size = {
  w = 13,
  h = 32
}

M.create_image= function(bytes, size)
  local base64 = vim.base64.encode(bytes)
  local command = string.format(
    "\027_Ga=t,s=%i,v=%i,i=%i,p=2;%s\027\\",
    size,
    size,
    id,
    base64
  )

  local oldid = id
  id = id + 1

  api.nvim_ui_send(command)

  return oldid
end

M.move_cursor = function(x, y)
  local row = math.floor(y / cell_size.h)
  local column = math.floor(x / cell_size.w)
  local command = string.format(
    "\027[%i;%iH",
    row,
    column
  )

  api.nvim_ui_send(command)
end

M.place= function(imageid, x, y)
  local xoffset = math.floor(x % cell_size.w)
  local yoffset = math.floor(y % cell_size.h)
  local command = string.format(
    "\027_Ga=p,i=%i,p=1,C=1,X=%i,Y=%i,q=2\027\\",
    imageid,
    xoffset,
    yoffset
  )

  api.nvim_ui_send(command)
end


M.hide_cursor = function ()
 api.nvim_ui_send("\027[?25l") 
end

M.show_cursor = function ()
 api.nvim_ui_send("\027[?25h") 
end

return M

r/neovim • • 7d ago

101 Questions Weekly 101 Questions Thread

17 Upvotes

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

Let's help each other and be kind.