r/neovim • u/mandar1n3 • 5h ago
Need Help Live preview of a Markdown file
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 • u/AutoModerator • 9h ago
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 • u/mandar1n3 • 5h ago
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 • u/Mumurika • 6h ago
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 • u/int_smoke • 10h ago
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 • u/Hebercosfer • 3h ago
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).

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 • u/4r73m190r0s • 4h ago
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 • u/asmodeus812 • 2d ago
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.
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
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+
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
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
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
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
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 • u/NazgulResebo • 2d ago
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 • u/Kamensky124 • 2d ago
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 • u/NoBrain8 • 2d ago
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 • u/BrodoSaggins • 2d ago
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 • u/Dry-Interaction8857 • 4d ago
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 • u/AssistanceEvery7057 • 3d ago
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!
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 • u/NazgulResebo • 5d ago
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 • u/brookhong • 3d ago
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.
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.
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.
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.
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.
<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.
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 • u/larchard • 6d ago
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 • u/4r73m190r0s • 6d ago
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 • u/Gloomy-Donut70 • 6d ago
[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 • u/[deleted] • 7d ago
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 • u/NazgulResebo • 7d ago
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 Mr/neovim • u/AutoModerator • 7d ago
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 • u/sashag90 • 7d ago
This plugin caches locals.scm query results (definitions) across whole project and stores those in a SQLite db. It provides bare lua API, telescope and fzf-lua integrations to jump around project files and definitions in different languages.
Why?
I've previously used the same idea in my other plugin hopcsharp.nvim but it was dotnet specific. treetags.nvim is language agnostic - if you have parser installed for a language it will be parsed and stored in a DB.
Features
Rich API for parsing - you can exclude \ include files by extensions, and exclude \ include kinds of locals.scm predefined captures.
Incremental parsing - no need to reparse whole folder each time (although it is pretty fast)
Built-in telescope\fzf-lua pickers
Exposes API's to access db \ definitions - you can tweak it explicitly for your needs
AI usage disclosure
I've explicitly stated it in the plugin README.md that AI was used to generate all documentation and md files in the repo. Everything else was written by hand (if it is important to someone). Although, I'm not a native English speaker, I didn't use AI to write this plugin introduction post.