Questions tagged [neovim]

A project that seeks to refactor Vim. Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors).

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Neovim :Explore weird behaviour

I'm new to neovim. I've been using the :Explore command to go to netrw, but when this happens the color scheme becomes inverted and my lsp starts trying to process the netrw buffer. This gets fixed ...
Parker D's user avatar
0 votes
1 answer
60 views

Is vim.fn.winrestview supposed to restore the view saved with vim.fn.winsaveview?

Inspired by this answer (quoted below), I wanted to make a similar mapping using Lua. nnoremap <expr> * v:count ? '*' : '<Cmd>silent keepjumps normal! *<CR><Cmd>call ...
nullromo's user avatar
  • 161
0 votes
0 answers
80 views

Neovim popup window with type signatures on mouse hover in haskell code (like in Visual Studio Code)

I install Neovim with coc-nvim plugin and haskell language server. Now I have autocomplete and syntax highlighting. But I want to see type signatures when I move mouse on functions and other names (...
Dmitry M's user avatar
0 votes
3 answers
151 views

Why Y doesn't work like `yy`, but works like `y$`?

Why Y command doesn't work like yy, but works like y$? I mean, everyone says that it does work like yy, but for me, it doesn't. So how do I fix it? For the close reason: This question doesn't help me. ...
Fmbalbuena's user avatar
0 votes
1 answer
657 views

Getting Failed to run `config` for nvim-lspconfig error when installing gopls

I'm trying to refresh all my old school vim setup to lsp based ones. As part of this effort I'm going to use lazy.nvim as the plugin manager. I was able to get everything working until the part where ...
mohi666's user avatar
  • 101
1 vote
1 answer
192 views

How to search and replace the highlighted text from visual mode?

The following is the functionality I am attempting to implement. 1. What works (normal mode): Search/highlight the word the cursor is on. Replace the word the cursor is on. Note that the word doesn'...
Vladimir's user avatar
1 vote
1 answer
49 views

Disable syntax expansion on cursor hover

I use Neovim with Vimwiki for a personal wiki of mine. I frequently use its syntax for changing typeface; for example _ _ for italic and * * for bold. The syntax is expanded when the cursor is on a ...
efefe's user avatar
  • 11
1 vote
1 answer
83 views

How to skip a line when using visual block mode?

I want to add cursors to all lines except the third, is that achievable? 1 2 3 👈 skip this line 4 5
Wenfang Du's user avatar
0 votes
0 answers
19 views

Setting TextYankPost v:event attributes in lua

I'm trying to fix a bug in a plugin that manually fires "TextYankPost" like: vim.api.nvim_exec_autocmds("TextYankPost", {}) This does not set v:event.regcontents, which causes ...
user2780747's user avatar
0 votes
0 answers
27 views

How to detach/disable a buffer-update callback in nvim

In vim, we can implement a vim script, which monitors text changes in details, with listener_add(), listener_remove(), listener_flush(). In nvim, nvim_buf_attach() is available to attach a callback. ...
Rick Howe's user avatar
  • 353
1 vote
1 answer
54 views

How to replace the default python syntax in Neovim without a plugin manager?

As the title, I would like to replace the default python syntax with the more modern one in https://github.com/vim-python/python-syntax. I managed to do this in Neovim 0.9.4 with the vim-plug plugin ...
IvanProsperi94's user avatar
0 votes
1 answer
156 views

sloooow startup

sometimes nvim starts really slow. It takes several seconds to startup. Here is my log created with nvim --startuptime vim.log: 054.603 022.454: init default mappings & autocommands 104.863 011....
mankind86's user avatar
0 votes
0 answers
20 views

Neovim syntax coloring stops working

I'm on a vanilla Debian 12 system using Neovim 0.9.4 in a tmux (3.3a) session with TERM as screen-256color My (n)vim plugins are nerdtree, vim-airline, vim-airline-themes, matchit, linediff, diffchar,...
LiamF's user avatar
  • 185
0 votes
0 answers
40 views

multibyte characters unicode in neovim status line

I am trying to configure lualine plugin to display unicode of a multibyte character under the cursor. It is works fine for ASCII but not multibyte chars... Can anyone share a working lua function? ...
Malamoot's user avatar
1 vote
1 answer
111 views

Error when trying to set Kanagawa colorscheme

I installed Kanagawa plugin using vim-plug. When I tried to change the colorscheme with: :colorscheme kanagawa I got the following error : >- Error detected while processing /home/mmip/.local/...
armandfavrot's user avatar
3 votes
1 answer
78 views

Neovim - Search for Digraph

Is there a way to search for Digraphs in Neovim 0.9.1? My Ideas so far: For example somehow using the :digraphs command? In Vim there is for example the :help digraph-table and you can search there ...
Bog's user avatar
  • 457
0 votes
0 answers
35 views

How to set TMUX window using set title option?

In neovim source code title option is set as follows at https://github.com/neovim/neovim/blob/73c7a0d58e6358d35fe2d5a11b3e807a625a0001/src/nvim/tui/tui.c#L1460 : void tui_set_title(TUIData *tui, ...
KamilCuk's user avatar
  • 265
0 votes
0 answers
21 views

Copying from current buffer then creating a file and pasting to it in background

There are sometimes when I am trying to copy to my current buffer (y) and pasting to a different buffer(p) however, sometimes I will fat-finger it and press maybe one or more other keys when trying to ...
Ctfrancia's user avatar
  • 133
2 votes
1 answer
84 views

Avoiding name conflicts in ~/.config/nvim/lua/

I've installed telescope.nvim plugin for NeoVim. Now, I would like to put some configuration code related to this plugin in this file: ~/.config/nvim/lua/telescope.lua In my init.lua file, I've ...
Flimm's user avatar
  • 2,202
0 votes
0 answers
224 views

Certain Nerd Fonts does not display properly

On my Mac (M1), I am not able to get the symbols display properly with all Nerd Fonts excepting one I have installed Nerd Fonts as described in the documentation. Typically I use homebrew or have ...
jayr's user avatar
  • 33
0 votes
0 answers
19 views

Neovim suggestion line highlight

I recently updated from neovim v7 to v10 (NVIM v0.10.0-dev-1613+g585eeacb2) Right after the update, I started having an issue when opening suggestion dropdown - selected line is not highlighted. Same ...
Slava.In's user avatar
  • 101
0 votes
0 answers
95 views

Startup error on neovim 'has_package' attempts to call a nil value

I am trying to use these configurations for neovim, but every time I start the editor I get: Error detected while processing /home/user/.config/nvim/init.lua: E5113: Error while calling lua chunk: ......
user49611's user avatar
0 votes
1 answer
54 views

Have Neovim automagically invoke external program on the Neovim-saved file while exiting

I have the following python code stored in my $HOME/bin/email-process #!/usr/bin/python3 from sys import argv # open up the email contents file infile = open(argv[1], 'r') # read it into an array ...
user3236841's user avatar
1 vote
1 answer
296 views

Docker-Compose LSP will not attach to buffer nor automatically start

With the current default configuration of the "docker_compose_language_service" LSP, it will not start, nor attach after being started to the current buffer. When taking a look at the ...
benlodz's user avatar
  • 13
1 vote
0 answers
191 views

Set default light and dark themes

How can I set the default colorscheme according the current shell light/dark theme? I thought about using an if..else statement reading the background variable, but on my light theme terminals, ...
SystematicFrank's user avatar
1 vote
2 answers
1k views

Automatic formatting in C/C++/etc while typing in Neovim

I am new to Neovim, having moved from Emacs. One of the features I really liked and got used to in Emacs was automatic indentation and formatting while in different modes such as C++. I knew how to do ...
user3236841's user avatar
1 vote
1 answer
87 views

Can I make a user command non-silent?

Summary I use a command and it prints a message. When I create a user command that runs the same underlying function, I don't see the message. Example The command :Telescope git_status from the ...
nullromo's user avatar
  • 161
0 votes
0 answers
27 views

Tsserver can not detect the corresponding error messages

I'm using NERDTree. When I open a TypeScript file, tsserver can detect the corresponding error messages. However, when I switch files and return to the previous one, any code modifications aren't ...
buzz johnson's user avatar
1 vote
1 answer
69 views

Script in autoload is not running

I'm using Linux, Vim (nox) 9.0, and Neovim 0.9.4; I have both environments synchronized. What would prevent a .vim file in ~/.vim/autoload/ or ~/.config/nvim/autoload/ from autoloading? The only ...
LiamF's user avatar
  • 185
0 votes
2 answers
117 views

How to exclude a specific buffer from the BufEnter autocmd group?

I want to load a plugin when I enter a buffer, so I set this event to BufEnter. But when I start neovim, the plugin loads at the dashboard buffer. I want to exclude that buffer. How can I do it? ...
Nias26's user avatar
  • 11
0 votes
0 answers
26 views

Building from source whilst already having a version installed

Using arm [on raspberry pi], I built Neovim from source successfully, and I can run the bin from neovim/build/bin, which runs fine. Initially I installed Neovim using apt. The repo for this distro ...
Adeerlike's user avatar
  • 101
1 vote
1 answer
503 views

How do I configure plugins in AstroNvim?

I'm using AstroNvim. I've cloned the template based repo to ~/.config/nvim/lua/user. How do I configure clangd, for example, to use LLVM code style instead of Google's or to use 4 spaces tab ...
AnonNothing's user avatar
2 votes
1 answer
250 views

Neovim shows python related error after installing semshi

I'm currently in the process of setting up my configuration for my Neovim environment and I'm struggling with some Python related issues. I'm on macOS with nvim 0.9.4, installed over brew (if that ...
Sito's user avatar
  • 121
1 vote
1 answer
101 views

Neovim: remapping to paste from system clipboard pastes incorrectly

In my init.vim I have this section: let mapleader=";" " copies to system clipboard vnoremap <leader>y "*y " pastes from system clipboard vnoremap <leader>p "...
Ctfrancia's user avatar
  • 133
1 vote
1 answer
94 views

Disable Alt-h terminal mode key combination

I would like to disable the Alt-h key combination that brings up the horizontal terminal in Neovim. I see the original mapping in ~/.config/nvim/lua/core/mappings.lua: ["<A-h>"] = {...
Alex D.'s user avatar
  • 13
0 votes
0 answers
64 views

Contextual Snippets not working in inline mathmode of vimwiki

I am trying to use the snippets in math context inside vimwiki filetypes. The math contextual snippets are working fine for ".tex" files, but not for ".wiki" files. However all the ...
vishal rao's user avatar
0 votes
1 answer
1k views

Configuring vimwiki in neovim

I am struggling with the basic configuration for vimwiki in neovim. I cannot get it to use my configuration. For import I am using lazy.nvim. This is the concerning lazy-section: {"vimwiki/...
hmaier's user avatar
  • 113
0 votes
1 answer
181 views

Deoplete + Vimtex with Lazy.nvim. Deoplete is not triggered

I tried to migrate fomr packer.nvim to lazy.nvim and I encounter problem with deoplete. With packer is triggered on every document and .tex files. With Lazy.nvim is not. I appreciate any help! Here is ...
Mafsi's user avatar
  • 225
0 votes
0 answers
67 views

How to disable semantic tokens for telescope?

I had semantic tokens automatically applied by my LSP, but I was able to disable it using this code: callback = function(args) local client = vim.lsp.get_client_by_id(args.data.client_id) ...
abbood's user avatar
  • 713
0 votes
0 answers
159 views

Why do I get E492 running a plugin command through a keymap after lazy loading

I've been using neovim for quite a while, but I'm looking to switch to a Lua config. I'm looking to use lazy.nvim, but I can't figure out why my plugin commands only get initialized when I configure ...
Chad Skeeters's user avatar
0 votes
0 answers
110 views

How to disable tsserver check on JS file

I am a newbie to neovim, so please bear with me. I am using Mason to configure my LSP servers. For Javascript I use tsserver. However I am getting error/hint 'Could not find declaration file for ...
Petr Bělecký's user avatar
1 vote
2 answers
236 views

How to replace a space after a word with a line break (new line)?

In Neovim, I used the J command to join lines, and now I'm looking for a keybinding in normal mode that can do the opposite: replace the space after a word with a line break. I've tried a few "...
pwanker's user avatar
  • 11
0 votes
1 answer
374 views

How to disable lsp server syntax highlighting?

I found out that my lsp servers is somehow adding this ugly highlighting to my code (this happened after I updated my Homebrew for some reason), here are before and after pics: Here is my lsp server ...
abbood's user avatar
  • 713
1 vote
0 answers
104 views

Neovim+texlab+Skim configuration

Trying to make forward and inverse search work but I'm not sure how to modify my configs. I am currently using this plugin to try and make it work, but I am not sure where to put the lines that - they ...
Dalamar's user avatar
  • 111
1 vote
1 answer
281 views

ccls configuration in nvim-lspconfig

I've been struggling for setting ccls in Neovim. I've ever used clangd for a long time; after following TJ's video and instructions on nvim-lspconfig, it works well. Now I would like to switch to ccls ...
HRC's user avatar
  • 21
0 votes
0 answers
20 views

Terminal buffer is being treated as editor buffer

I am using vim-terminal plugin. When I create a split terminal using the command :TerminalSplit bash, I can input commands into the terminal, but when I press enter, it moves to the next line without ...
Mahmudul's user avatar
2 votes
1 answer
264 views

Using the WSL terminal with Neovim

I have Neovim installed on Windows. I use WSL for running Python and C code. So I'd like to map a key to get Neovim to run a shell command in WSL directly from the Neovim editor. But I seem to be ...
vvenk's user avatar
  • 33
0 votes
0 answers
218 views

goto definition

I'd like to have a shortcut ('gD', say) to go to the definition using vim.lsp.buf.definition; however, in a new tab (if this is not open yet), or in the tab already open.
Alois Pichler's user avatar
0 votes
0 answers
236 views

packer error "module 'packer.luarocks' not found:"

I am trying to install packer.nvim to my NvChad configuration. I installed packer using git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\...
ori raisfeld's user avatar
1 vote
2 answers
100 views

Why am I seeing this character in Neovim?'

I copy pasted init.lua from Neovim kickstarter. Now while writing c++ code I am getting the below '?' character inside a box in Neovim I am using Neovim in Ubuntu subsystem windows 10. I think some ...
Sam Jones's user avatar

1 2
3
4 5
35