Skip to main content

Questions tagged [neovim]

Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors). It should only be used if the problem does NOT occur in Vim or other Vi-like editors.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
6 views

How can I show the source for each completion in the nvim-cmp popup?

When an nvim-cmp popup show there is no indication of what source actually provided the completion nvim_lsp, luasnip, buffer, path, copilot, codeium, etc. Is there any way to include the source name ...
RubenLaguna's user avatar
0 votes
0 answers
17 views

Nvim+Treesitter gives me language highlights in markdown code blocks, how do I set custom highlights?

When writing technical documentation in markdown, Neovim and Treesitter will provide language formatting for triple back-tick code blocks ```cpp For example: int main() { printf("hello world\n&...
Guy Langston's user avatar
0 votes
1 answer
22 views

How to pretty print a lua table into an nvim buffer?

Neovim provides a convenient pretty-printer: :lua vim.print(vim.lsp.get_active_clients()) However, the active lsp clients output is massive so I'd want to see it in a buffer. With vim-scriptease, I ...
idbrii's user avatar
  • 681
0 votes
0 answers
8 views

How do I use --server in Neovim on Windows?

How do I use nvim --server? I'm on Windows 10 and I installed nvim with scoop. I try these commands: > nvim --version NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068 Run "nvim -V1 -v&...
idbrii's user avatar
  • 681
1 vote
1 answer
9 views

How to install VimTex on Neovim (NvChad) on Windows (not WSL)

Hi I’m trying to install VimTex in NvChad on Windows (not WSL), but I’m not sure what to do, the official Git page wasn’t of much help, and I’ve been stuck for hours. I want to know what I must ...
Eder's user avatar
  • 11
1 vote
1 answer
29 views

v_g_ctrl-g in neovim does not work

I am trying to find out the word count in selected text in neovim. For some reason, g_ctrl-g works perfectly fine in normal mode, but when I try it in visual mode after selecting some text, nothing ...
K G's user avatar
  • 113
1 vote
1 answer
21 views

Install plugins to an nvim-only package folder inside ~/.vim?

I want to try out nvim, but I don't want to break my vim configuration. I have my vim config in ~/.vim and I have an %LocalAppData%\nvim\init.lua that sources my vimrc and this block in my vimrc get ...
idbrii's user avatar
  • 681
0 votes
1 answer
15 views

How to fix vimwiki auto hiding things when the cursor is not at that line?

I am new to Vim/Neovim and I'm facing a problem. I need a very simple setup of vimwiki where I can link mathematica .m files together. No other bells and whistles required right now. I have everything ...
Prem's user avatar
  • 103
0 votes
1 answer
18 views

Remap `ctrl` + non-english letter doesn't work. I can remap `å`, but not `<C-å>`

Remap ctrl + non-english letter doesn't work. I can remap å, but not <C-å>. -- this one works: vim.api.nvim_set_keymap('n', '<C-u>', ':vertical resize +5<CR>', { noremap = true, ...
Sebastian Nielsen's user avatar
2 votes
0 answers
34 views

How do you manually install plugins for Neovim on Windows without a plugin manager, and without WSL or similar?

I'm trying to configure a vim plugin on neovim on Windows 10. I specifically don't want to use WSL or similar. I'm proficient with vi as an editor but have never used vim or neovim with plugins. I'm ...
Jake R's user avatar
  • 21
0 votes
1 answer
34 views

How to get started with Go lang? [closed]

I purchased a book on Go lang and I wanted to get Neovim with kickstarter setup for my first project. In Mason there are a bunch of different items I have available to install. What is recommended for ...
myblackhatch's user avatar
0 votes
1 answer
25 views

Neovim help setting a variable

I use Neovim 0.10.0 with Ubuntu. Just started and try to set a variable for gitgutter_sign_modified. In the readme it says to add in ~/.vimrc: let g:gitgutter_sign_added = 'xx' let g:...
adminloozer's user avatar
0 votes
1 answer
36 views

Neovim not loading User-level shell (bash) profile when running on a remote server

I installed Neovim on a remote server. Everything runs fine, except that among the very few plugins I use, Telescope does not work properly since it does not find the rg (ripgrep) command. Two ...
mEm's user avatar
  • 157
0 votes
1 answer
29 views

Get attached lsp server name

I am trying to show on lualine the current attached LSP server name. I don't want to install plugins in order to do this so I am searching for a way to do it with the Neovim API. I've read the docs ...
Nias26's user avatar
  • 13
0 votes
0 answers
16 views

Telescope stops working after too many instances

I am getting used to a nvim + tmux setup when I noticed Telescope suddenly delivered no results, outside currently open vim files for the current tmux window. I have 5 windows open, telescope works ...
fmi21's user avatar
  • 101
0 votes
0 answers
17 views

How do I send the current selection to a desktop application in Wayland?

I use Pot Desktop to translate words. I cannot use it with the content I selected Neovim by selecting text with the mouse (Visual mode). Tech stack: kitty wayland hyprland archlinuxcn
六尾狐's user avatar
0 votes
1 answer
37 views

How to enable forward slash for directory names on autocompletion with hrsh7th / cmp-path plugin?

I use this plugin https://github.com/hrsh7th/cmp-path for autocompletion, including paths in the command mode. And the problem is that on a tab press the name is completed, but the slash is not ...
d.k's user avatar
  • 704
0 votes
0 answers
110 views

How do I resolve "no parser for 'vimdoc' language" (or clean my installation)?

I am new to Neovim and decided to install the kickstart.nvim config. After using it for a while I didn't like it, so I tried to remove it. Something went wrong in this process: after deleting most of ...
Ludovico's user avatar
1 vote
0 answers
17 views

How can I save a window layout with plugin windows and restore it later without sessions?

I want to have something like workspaces in Neovim: I can't use sessions because they don't properly restore windows for Neotree or Outline.nvim. The only workaround for that I have is to run commands ...
Oneechan69's user avatar
1 vote
2 answers
53 views

Is Neovim able to use Terminal profile colors?

My terminal profile is set by time and changes between dark and light. The color-scheme is fine-tuned to my personal needs, I would love to make Neovim use the terminal colors profile. Is it possible ...
mad_mosel's user avatar
0 votes
2 answers
30 views

Using filename in mapped command

I am on Neovim, and have ToggleTerm installed. I would like to do :nnoremap <leader><leader>r :ToggleTerm<cr>my_interpreter %<cr> but this will just open ToggleTerm, and run ...
CocoaNut's user avatar
0 votes
0 answers
48 views

How can I resolve "WhichKey: WARNING conflicting keymap exists for mode [...]"

How can I find the source of these errors as reported by :LazyHealth which-key: require("which-key.health").check() WhichKey: checking conflicting keymaps - WARNING conflicting keymap exists ...
Evan Carroll's user avatar
  • 1,433
0 votes
1 answer
69 views

Why is my terminal background color changing now when I start neovim 0.10?

My neovim is run under Kitty with the Borland color scheme. When I start neovim my background changes. You can see the before picture here, And the after picture here, I've tried deleting every ...
Evan Carroll's user avatar
  • 1,433
0 votes
1 answer
33 views

Why doesn’t Neovim highlight or lint my arduino code?

I have kickstarter installed. I used Mason to install the arduino LSP implementation. The arduino CLI is installed along with the standard arduino IDE, clangd, and treesitter. Im using a lilygo gsm ...
myblackhatch's user avatar
0 votes
1 answer
55 views

Why can Neovim not find lazy or other runtime files?

I have been a vi user for most of 40 years. Time to upgrade. One of my problems is trying to get Neovim to properly see the standard shipped tools & data in C:\Program Files\Neovim\share\nvim\...
FrankieD3's user avatar
0 votes
1 answer
26 views

How to remove the snippet items from clangd in suggestion list of nvim-cmp?

I disable snippet support of clangd with following configuration. capabilities = { textDocument = { completion = { completionItem = { snippetSupport = false, ...
cpcopy's user avatar
  • 1
1 vote
0 answers
58 views

Angular Language server crashes when working on an `nx` project with `nx serve`

The Angular language server in nvim crashes after each automatic rebuild/reload of nx serve. It crashes with Program does not contain "<PROJECT_PATH>/apps/org/src/app/app.component....
Thomas's user avatar
  • 119
2 votes
1 answer
40 views

Check for diff mode while using git mergetool

I am using Neovim v0.10.0 and have the following config for git difftool: [diff] tool = nvimdiff [difftool] prompt = False trustExitCode = true [difftool "nvimdiff"] cmd = ...
Lân's user avatar
  • 21
0 votes
1 answer
46 views

How do I fix un-linked color groups?

I recently had to re-install my OS: after updating everything, I noticed some colorscheme changes in Neovim. The colorscheme didn't change, but the way some groups are colored did. I was searching for ...
s0la's user avatar
  • 1
0 votes
0 answers
32 views

How to set tailwindCSS.experimental.classRegex in Mason?

I am using Neovim and use mason to configure my LSPs. I want to use Tailwind with Dioxus which means I need to setup "tailwindCSS.experimental.classRegex": ["class: \"(.*)\"&...
Maciej Pruchnik's user avatar
0 votes
1 answer
48 views

How do I use tree-sitter to change syntax highlighting for different kinds of identifiers?

I'm using coc-clangd and nvim-treesitter in NeoVim, and I have the following requirements. set the global variable identifiers to bold set the virtual function identifiers to italic set the macro ...
VerySimple's user avatar
4 votes
1 answer
158 views

Show sixel images inside Vim terminal

I'm trying to get the img2sixel function to work from a terminal inside of the vim. Outside of vim, the image ("Hey") appears inline as expected and wanted: However, this does not work from ...
ElRudi's user avatar
  • 191
1 vote
0 answers
50 views

New foldtext syntax highlighting in Neovim 0.10

I really like the new vim.o.foldtext="" functionality that enables syntax highlighting. However, I am unsure how to modify it to show not only the first line of the fold but also the number ...
Fanteria's user avatar
  • 106
0 votes
0 answers
46 views

Rust analyser in neovim is underlining almost all words red in working code

I recently started to use nvim. I was doing a web API in rust using actix and I was faced with these red underlines in words that are neither misspelled words or errors, as the code runs just fine. I ...
DeusExMachina's user avatar
0 votes
1 answer
48 views

Get an exact copy of the buffer as it appears in the window

Main Question For a plugin I'm developing, I want to show a floating window somewhere within the buffer view, but want to work out exactly which rows and columns in the window are already taken up by ...
KamielDev's user avatar
  • 101
3 votes
1 answer
161 views

Interactive python script development

I'm trying to replicate my vscode setup in neovim, but none of the options I have found seem to work. Goal A vertically split application. Left side: source code, split into cells with the # %% marker....
ElRudi's user avatar
  • 191
0 votes
0 answers
32 views

Remapping telescope's move_selection doesn't work

New to vim. Using Dvorak layout. Trying to remap the move_selection_{next,previous} to t for next and c for previous, to match my text editing mappings. Here's the code: { "nvim-telescope/...
splaytreez's user avatar
0 votes
2 answers
47 views

How do I remove the delay when using a key remapped to `k`?

I use the Dvorak layout and am trying to start using Neovim. By default, the arrow buttons were scattered all across the keyboard, so I created this script to remap them: local function noremap(...
splaytreez's user avatar
0 votes
1 answer
221 views

How do I set up the lazy.nvim plugin installer in LazyVim?

So I'm trying to set up LazyVim, and so far I have almost everything set up regarding the requirements for lazyvim. I still haven't glued LazyVim and Neovim together, but I've been trying to figure ...
Ferrius Undermine's user avatar
1 vote
1 answer
25 views

Unable to set custom colors for LSP errors

I have a custom color scheme and I've provided colors for LSPDiagnostics and Errors, but none of them are working. As seen, errors should be red, but the errors I see are yellowish in color Tried a ...
Riptide's user avatar
  • 153
1 vote
1 answer
53 views

How do I start a search with the currently selected text?

What to add to init.lua such that / set the CLI with: / followed by the selected text if any / otherwise
user17227456's user avatar
0 votes
1 answer
28 views

Perplexing character: ^V in a terminal used by Neovim

Just found out or seen that a file opened is displaying: ^V in a terminal utilized by Neovim editor and it really is a single character! Proven by its distinct colorizing So wondering how can one ...
user17227456's user avatar
0 votes
0 answers
52 views

LuaSnip VScode snippets for Apex not showing

In Neovim I tried adding my own VSCode style snippets for Apex programming language to LuaSnip and I can't get it to work. This is my packer.lua file: vim.cmd [[packadd packer.nvim]] return require('...
Makary's user avatar
  • 1
0 votes
1 answer
47 views

Neovim displays with different colors, compared to Vim. Why? [duplicate]

I've migrated from Vim to Neovim, including my old .vimrc, and all packages on ~/.vim. This seems to work mostly fine, but, for some reason, colors and syntax are different: I've tried the set ...
MaiaVictor's user avatar
1 vote
1 answer
56 views

How to show outputs of a ":!cmd" command on a new screen, rather than at the bottom of my screen?

Whenever I type a shell command, like: :!ls Neovim will display it at the bottom of my screen. I'd like it to, instead, clear the whole window, and display it at the top. Is that possible?
MaiaVictor's user avatar
0 votes
0 answers
20 views

How to make neovim's filetype awareness synchronous?

If my init.lua contains the following: vim.cmd('syntax enable') print("test") print(vim.bo.filetype) print("test") Then the output is: test test But if I put some other ...
Brett Holman's user avatar
0 votes
0 answers
128 views

arduino-language-server is not attached to buffer with nvim-lspconfig

I'm trying to use arduino-language-server in order in my neovim configuration. I'm using NVIM v0.11.0-dev-164+g3a1515bfe (latest nightly version), and use nvim-lspconfig, and mason to set up my lsp. ...
Curs3W4ll's user avatar
0 votes
1 answer
36 views

Arbitrary character on the current line are highlighted, what plugin or part of the configuration is doing it? [closed]

After a lot of years using Vim, I recently moved to NeoVim, especially motivated by this project that helps to setup your configuration via Nix. Using that project as starting point, I started to add ...
Manuel's user avatar
  • 111
0 votes
0 answers
33 views

How do I resolve this error when invoking custom telescope pickers?

I'm trying to set up a custom buffers picker so that I just open the picker with <leader>b and then click a number that opens the desired file in the current buffer. Code: local actions = ...
Walaalka's user avatar
0 votes
0 answers
56 views

Question about clangd in cpp files

I encountered a question when I tried to config neovim with clangd for c&cpp programming on Windows 11. The softwares and platform used are list below: Windows 11 Neovim 0.10.0 llvm-mingw ...
znsword's user avatar

1
2 3 4 5
37