Questions tagged [neovim]
Questions regarding Neovim, a refactored fork of Vim. Should be used with other tags to narrow down the question.
1,995 questions
1
vote
1
answer
39
views
Activating LSP actions on type information that isn't present in the source file
I work primarily in Rust where I don't have type information written in the file (the compiler infers the type information for me). I normally rely on the type inlay hints, and in the JetBrains IDEs ...
0
votes
0
answers
19
views
How do you set a transparent background for a Neovim floating window?
What I want
I want the content of my floating window to appear normally, but I want any blank space to appear like whatever is behind it.
What I tried
I tried three different approaches in the example ...
1
vote
2
answers
171
views
How to auto-escape slashes when pasting into search
I have a path like admin/page.html on my clipboard, and I want to find all instances of this in the buffer.
I press: / and then: <C-r>+ to paste it:
/admin/page.html
This only finds the word ...
0
votes
0
answers
30
views
tab indents keep going to 8 spaces in my kickstart installation [closed]
I'm a relatively new Neovim user, and am struggling with the indentation rules. I would like my tabs to be 4 spaces. I understand there are several options for this. In the init.lua file for kickstart ...
4
votes
2
answers
260
views
Neovim git merge problem
When using neovim as a git mergetool, im having troubles accepting entire blocks of conflicts from either source.
<<<<<<< HEAD
BRANCH 1
=======
BRANCH 2 CHANGES
>>>>&...
4
votes
1
answer
138
views
EDITOR=nvim doesn't work with "crontab -e"
EDITOR=vim crontab -e
works, but:
EDITOR=nvim crontab -e
does not.
Changes made to the crontab don't stick. Why is this?
0
votes
0
answers
12
views
Why are lua error messages shortened?
Example of an error I might get:
...t_nvjppMGP/usr/share/nvim/runtime/lua/vim/diagnostic.lua:1633: Failed to delete autocmd
stack traceback:
/home/alex/.config/nvim/lua/options.lua:41: in function ...
1
vote
1
answer
116
views
After migrating from require('lspconfig').setup{} to vim.lsp.config(), why do I still need to have the neovim/nvim-lspconfig plugin installed?
After getting the deprecation warning from the neovim/nvim-lspconfig plugin that the require('lspconfig').setup() function was being deprecated in favor of the vim.lsp.config() and vim.lsp.enable() ...
2
votes
1
answer
83
views
Cannot put from mouse selection or clipboard
Using Neovim 0.10.4 on Kubuntu 25.10.
When I type :registers, the * and + registers are missing.
In :checkhealth, I see:
provider.clipboard: require("provider.clipboard.health").check()
...
1
vote
0
answers
15
views
How to make working directory always follow netrw's current directory?
I've set vim.g.netrw_keepdir = 0 but when I open a directory in netrw that has directories in it, changing to one of the subdirectories using netrw (pressing enter on it) doesn't update :pwd ...
2
votes
1
answer
94
views
How can I use Neovim's default colorscheme in Vim?
I really like Neovim's default colorscheme. Is there a way to get that on Vim?
I checked Neovim's runtime directory but there are no specified color groups in default.vim so is there a way to use it ...
1
vote
2
answers
65
views
synID() always returns 0 in Neovim but not in Vim
I'm trying to move to Neovim from regular Vim and while tinkering with UltiSnips I found out that the synID function always returns 0 for some filetypes in Neovim, while it works fine in Vim. For ...
1
vote
0
answers
36
views
+150
How to syntax highlight SQL placeholders like ":myParam" in PHP when I'm using nvim & Treesitter
I'm using treesitter inside neovim, for all of the awesome reasons we already know.
My (legacy) code has a lot of SQL statements in PHP strings. Using TS I've got it to recognise SQL inside PHP ...
0
votes
1
answer
61
views
Configure bufferline colors and naming of tabs
In Neovim I am using nvim-tree and the bufferline plugin. The latter is to have tabs.
I am not able on how to properly configure bufferline to have the following behavior:
When I switch to nvim-tree ...
1
vote
1
answer
77
views
With kitty keyboard protocol: <C-m> still indistinguishable from <CR>
I'm using a terminal emulator which supports the kitty keyboard protocol (wezterm). Upon startup, Neovim will establish that keys are sent using the aforementioned protocol which makes Alt and Shift ...