2,458 questions
10
votes
2
answers
15k
views
Set up Neovim integration in VS code
Currently a (neo)vim user, I read that VS Code supports neovim backend integration, but after searching I cannot find how to set it up.
How to set up neovim integration in VS Code?
I use both linux ...
1
vote
0
answers
24
views
Add description with complete in nvim_create_user_command
I am trying to make a user command and add completion for it
vim.api.nvim_create_user_command('Piomon', function(opts)
local args = opts.fargs
require('platformio.piomon').piomon(args)
end, {
...
Advice
0
votes
1
replies
65
views
LSP for gcc C++ on Neovim
I'm trying to get an LSP for my gcc C++ on Neovim. The issue is, I'm quite new to both the concept of an LSP and Neovim's scripting. I'm getting mixed opinions on clangd and ccls, but I don't really ...
5
votes
1
answer
68
views
How to ignore keywords when rewrapping text in Vim?
Is there an option I can set in Vim and Neovim to force the gq motion to wrap text strictly at 80 characters, without addings hanging indents after lines that begin with common programming keywords ...
10
votes
6
answers
6k
views
Why does Vim highlight all my JSON comments in red?
I've got some comments in a JSON file that were autogenerated by, and unfortunately it seems like vim can't recognize that they're just comments.
They're all red - which one of my plugins is doing ...
2
votes
1
answer
2k
views
Neovim Nvim-Dap issues configuring for C++ with Mason.nvim
I am unable to get nvim-dap functional for my neovim setup. It continually exits with code -1 and I'm not able to ever start debugging. I've ran this on multiple already-functional programs with no ...
2
votes
1
answer
46
views
Blink-cmp 1s freeze on first char of each word in insert mode
I am using pop-os cosmic with kitty as terminal. I installed lazyvim starter. With blink cmp plugin for completion, I need to wait 1s before I can continue typing on every first char of each word.
If ...
4
votes
0
answers
103
views
Restore Tutor Marks in LazyVim
I recently installed LazyVim, and I was trying to use the :Tutor command. Everything works well in Tutor, but the check and cross marks. In Tutor, in most lessons, there are some lines that needs to ...
2
votes
0
answers
57
views
Mason.nvim works on Windows but not on my WSL [closed]
I’m running Neovim 0.10.0 with mason.nvim inside WSL (Ubuntu).
I have 2 Neovim configurations: one on Windows (pwsh) and the other on WSL (ubuntu). On Windows, everything works fine — I can install ...
6
votes
2
answers
164
views
Increment numbers in a space-delimited column by a constant value in Vim/Neovim
I am trying to increment the numbers in a column of a file by a constant value using:
:s/\d\+/\=submatch(0)+8192
where 8192 is the constant I want to add.
My file has the below structure:
ATOM 32760 ...
1
vote
0
answers
85
views
How setup Neovim for Haxe programming language (LSP and Treesitter)
Hello people on the internet.
I made my own Neovim config https://github.com/Mr-Fox-h/fox-ide and it's a good config, but I want to write codes with Haxe programming language. I installed haxe and ...
1
vote
0
answers
31
views
Auto selection of first entry in auto-suggestion from nvim-cmp
I have this configuration file for nvim-cmp plugin:
return {
'hrsh7th/nvim-cmp',
event = 'InsertEnter',
dependencies = {
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-...
1
vote
1
answer
1k
views
How to connect to a LSP server running at some PID?
I got a LSP server and it is a binary. Now I could run that library at a certain PID. How could I connect to that server and do some testing using vim.lsp.buf_request?
I do not want to use vim.lsp....
6
votes
3
answers
5k
views
Issue with Rust macro expansion in editor: proc-macro server's api version is newer than rust-analyzer's
After recent update of Rust toolchain version to 1.77.1 (by running rustup update) I've started seeing following error in my editor (Neovim):
Here's the error message in more readable format:
rust-...
0
votes
1
answer
62
views
Is there a way to persist options in NVIM? [closed]
Currently I am using a default nvim colorscheme gruvbox https://github.com/morhetz/gruvbox of which there are light and dark modes. In nvim, to set it to light mode you must input the command :set ...
-3
votes
1
answer
62
views
Put words seperated by whitespace on new lines
I have a Dockerfile with a lot of dependencies, it's very hard to see changes to the deps list in git diffs. How can i put every dependency on a new line using preferably substitute :s/?
Example:
RUN ...
1
vote
1
answer
51
views
Neovim with LaTeX, changed tabstop and shiftwidth leads to error while indenting in .tex files [closed]
I'm very new to neovim and I'm trying to set it up for LaTeX. I've been unable to indent in .tex files after changing tabstop and shiftwidth after using :set to set them both to 4. Specifically, my ...
0
votes
1
answer
281
views
dartls error as Neovim LSP server for a Flutter project
I am using Lazyvim, a Neovim distro as an editor for my Flutter project in Windows. I installed flutter-tools.nvim and installed dcm using mason.
The setup is ok, but I am having trouble with the go ...
35
votes
4
answers
26k
views
Is there a neovim version of vimdiff
I've started using nvim (neovim) recently. It generally works well, but when I run vimdiff, I noticed that I got the startup errors I got when I ran regular vim. I've fixed those so that both vim and ...
0
votes
0
answers
132
views
Can't get Avante.nvim to accept suggestions with custom keybindings
I'm trying to configure Avante.nvim to work with GitHub Copilot, but I can't get the suggestion acceptance keybinding to work. The suggestions appear correctly in insert mode (in gray text), but none ...
0
votes
0
answers
40
views
nvim : map multiple-words
I want to define a map for a several-words expression.
In ~/.config/nvim/init.vim :
:map abc a-b-c
works perfectly well.
But I want to do something like
:map a\ b\ c a-b-c
If I type "a b c"...
4
votes
2
answers
3k
views
Unable to run commands with neovim, when launched from git bash
I am trying to run terminal commands from neovim. I launched nvim from git bash. But when I run :!ls I get the error
: /usr/bin/bash: /s: No such file or directory
shell returned 127
I searched the ...
0
votes
1
answer
75
views
Neovim with tpope/vim-rails
I have Neovim (with NvChad). I seem to have 'tpope/vimrails' installed in my lua/plugins/init.lua file. When I start up :Lazy I can see that the plugin is listed under "not-loaded"
picture
...
8
votes
1
answer
9k
views
Neovim LSP: pyright server does not dynamically regognize changes in sub folders
I setup Neovim LSP using the nvim-lspconfig and the lsp-installer where I also installed the pyright server.
Without any further configuration it worked out of the box. However when I have a class in ...
0
votes
1
answer
236
views
Bufferline not working when using catppucin colorscheme
Bufferline does not working with catppucin colorscheme but it is working with other colour scheme any solutions for this.