Telegram Web Link
Install vim.pack plugins headless-ly?
(Need Help┃Solved)

I'm using 0.12 with vim.pack as "plugin manager", and every time I add my config to a docker image, I always have to press "Y" for "yes" or "A" for "always", to install all the plugins at startup. Is there any way to install all plugins non-interactively, something like "nvim --headless --installall" or something?

I could just clone all the repos manually and pit them in the correct directory, but I'd prefer it if it was more dynamic than that, such that it installs any new plugins I add to my config.

Another thing is to pipe "Y" to nvim, but I won't know how many would be needed if I want to keep it dynamic like stated above.

https://redd.it/1odx30r

@r_neovim
😁1
Repeat last forward/backward target command
(Need Help)

If I'm using a plugin like Mini.Bracketed, how do I repeat the last command done to continue to the next target? For example, if I do ]d to go to the next diagnostic, is there a shortcut to repeat that same command?

https://redd.it/1oeenf2

@r_neovim
How to prevent spellchecker flagging nerd-fonts icons like "" as misspelled ?
(Need Help)

I just realised that only nerd font icons had red underlines using oil for example.

I supposed I could add them to my spell-file I guess?

https://redd.it/1oeyvbr

@r_neovim
Has anyone gotten the biome lsp setup with the v0.11 way (without lspconfig)
(Need Help)

Was able to setup every other lsp except biome. Would really appreciate any help

https://redd.it/1of6lzt

@r_neovim
Suppressing Certain Errors Globally in Neovim
(Need Help)

Does anyone know how to suppress certain errors completely?

I'm not trying to use :silent for specific commands, rather, there are certain errors that really don't care about, such as Mark has invalid line number and such that frequently pop up when I've removed files, similar issues occur with plugins that do Git history for me when files are removed. It'd be nicer for me to just filter those messages out completely as they don't really help me at all and just interrupt my workflows.

https://redd.it/1oeylgr

@r_neovim
How to set custom keymappings with mason-lspconfig and Lazy.
(Need Help)

I'm pretty new to neovim and I'm using the lazy package manager to try to set up LSP support with nvim-lspconfig, Mason, and Mason-lspconfig. My current lsp.lua file looks like this.
return {
{
"neovim/nvim-lspconfig",

},
{
"mason-org/mason.nvim",
opts = {}
},

{
"mason-org/mason-lspconfig.nvim",
opts = {},
dependencies = {"mason-org/mason.nvim","neovim/nvim-lspconfig",},
}
}


I was wondering where to put keymappings that look like this.
vim.keymap.set("n", "gd", vim.lsp.buf.definition()) vim.keymap.set("n", "K", vim.lsp.buf.hover()) vim.keymap.set("n", "<leader>sd", vim.diagnostic.open_float()) vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename())

https://redd.it/1oer8vx

@r_neovim
synth.nvim - colorscheme

https://redd.it/1of6dvt

@r_neovim
Prasiodark - the colorscheme I've been running for the past 6 months

https://redd.it/1oez9xh

@r_neovim
Maple Dark: A carefully crafted color scheme with medium brightness and low saturation

https://redd.it/1ofnoab

@r_neovim
Implementing your own VSCode-style LSP breadcrumbs (not a plugin)
(Video)

I've been using dropbar.nvim for a while now. It's great! But I found that I wasn't using it to the full-extent of the features it offers. All I really wanted was the breadcrumbs, not the interactivity.

I am on a mission to cut down on my plugin needs. Plugins are great but most of them come with features that you don't fully use. If you can implement them on your own, not only can you tailor it to your particular use-case, but you can also appreciate the tool you are using. Lua is easy. And Neovim is insanely extensible. Just recently, I implemented Eldoc-style hover-documentation in Neovim.

So today I decided to dive into the docs again and created my own, simple, LSP breadcrumbs. Just to get the functionality working it took me \~100LOC. You can supplement it with aesthetics as you require. To get started, you can yoink this code, drop it into your config's init.lua (or in your lua/ directory and require(...) it in your init.lua), and voila!

Below is the video of how my implementation compares against dropbar.nvim:

dropbar.nvim in tab 2 and my implementation in tab 3



https://redd.it/1ofp9ia

@r_neovim
🩺 tiny-inline-diagnostic.nvim: major refactoring, related diagnostics, and more! (repost)

https://redd.it/1ofvp4x

@r_neovim
Better command-line window
(Discussion)

So I saw the post about the plugin-less breadcrumbs, I copied the code and wanted to experiment with it

for instance I wanted to see what this snippet does
    vim.lsp.buf_request(
bufnr,
'textDocument/documentSymbol',
params,
lsp_callback
)


but typing :lua print(<paste snippet>) is very cumbersome and even more cumbersome if I wanted to make changes to the snippet. I want something like the command window (see :h command-line-window) but more powerfull aka a neovim/lua repl. so it would let you paste and run multiline lua snippets

https://redd.it/1og001f

@r_neovim
Mom, can I have harpoon? We have harpoon at home

https://redd.it/1og2pg9

@r_neovim
insert-inlay-hints.nvim: a small plugin to make working with inlay hints easier
(Plugin)

Hello neovim community!

I'm announcing the release of my plugin insert-inlay-hints.nvim, which can insert type hints from any LSP as actual code. This can help save keystrokes in languages like Python, Rust, etc.
I missed the ability to insert inlay hints from vscode, and in languages where the LSP supports this, I found the UX a bit awkward.

insert-inlay-hints.nvim offers a different UX and plenty of customization (with sane defaults). You can insert:

* The hint closest to the cursor.
* All hints on the current line.
* All hints in a visual selection.
* Visual v, visual line V, and visual block ^V are all handled appropriately to insert only the hints inside the selection.
* All hints in a buffer.

Some notable options:

* Enable or disable the plugin based on a buffer's filetype.
* Disable the plugin for specific LSPs (based on their name).

Some notable options for inserting the closest hint:

Here is a demo video:

insert-inlay-hints.nvim demo video

GitHub repo:

https://www.github.com/AbysmalBiscuit/insert-inlay-hints.nvim

Known-limitations:

* When inserting the closest hint on lines with multi-byte characters (e.g., emoji, CJK, etc.) the cursor isn't placed at the end of the inserted hint. If anyone knows a way to correctly calculate the offsets please let me know. :)

Similar plugins:

* inlay-filler.nvim

https://redd.it/1oftvyg

@r_neovim
What do you use your per-project .nvim.lua for?
(Tips and Tricks)

Neovim supports a per-project config file called .nvim.lua, which lets you define local settings that only apply within a specific folder or project — like a modern replacement for .vimrc or .exrc.

You just need to enable it in your main config:

vim.o.exrc = true
vim.o.secure = true

Then, Neovim will automatically load .nvim.lua files it finds in the current directory.
Docs: :help exrc

I’m curious — what do you use .nvim.lua for?
Any cool examples, snippets, or creative setups?

https://redd.it/1ogfo9z

@r_neovim
Did you tie gq to LSP and formatters?
(Discussion)

Badically, question is in the title. Is it a good idea to plug LSPs and code formatters into gq, or it's better to create dedicated binding?

https://redd.it/1ogjyvh

@r_neovim
How to jump out of quotes or brackets after typing inside it?
(Need Help┃Solved)

I am learning nvim using kickstart.nvim, when I try to use double quotes or parenthesis, after typing the content inside, I either have to use right arrow ( which is not very convenient ) or I have to Esc + l + a, is there a better way to handle this?

https://redd.it/1ogdu9m

@r_neovim
2025/10/31 09:18:40
Back to Top
HTML Embed Code: