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
1 vote
1 answer
25 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
0 votes
1 answer
36 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
10 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
12 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
  • 313
1 vote
1 answer
27 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
43 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
18 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
26 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
26 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
61 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 ...
Pixelbog's user avatar
  • 417
0 votes
0 answers
10 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
14 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
77 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,182
0 votes
0 answers
35 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
15 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
20 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
38 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
44 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
0 votes
0 answers
26 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
83 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
54 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
16 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
34 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
68 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
12 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
104 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
68 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
38 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
41 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
51 views

Contextual Snippets of UltiSnips not working in vimwiki files

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
154 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
52 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
23 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
  • 671
0 votes
0 answers
65 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
33 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
71 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
62 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
  • 671
1 vote
0 answers
33 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
0 votes
0 answers
55 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
  • 11
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
92 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
37 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
70 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
55 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 vote
0 answers
19 views

Can vi/vim/neovim _not_ be fullscreen and just take up the bottom X lines of the shell prompt?

So right now I've got ctrl-E mapped to "edit" the current line in my prompt via neovim. So if I've got a line like $ cp -r path/with/typo a/really/really/really/long/path/name then I can ...
beyarkay's user avatar
  • 205
0 votes
0 answers
37 views

Neovim tries to run vale through a Autocommand

Whenever I save a .txt file it I get the error: Error detected while processing BufWritePost Autocommands for "*": Error running vale: ENOENT: no such file or directory I have tried using :...
Dario Spinnato's user avatar
1 vote
1 answer
44 views

Text shifts one character to the left when moving upwards

When I move the cursor upwards, the whole line (including the number) shifts one character to the left. The GIF explains it the best. I'm using Neovim installed in Windows but opened through WSL ...
vvenk's user avatar
  • 33
1 vote
1 answer
38 views

Set different colours for different HTML tags

Can we set different colours for different tags in HTML syntax? For example, set a tags to green and div tags to yellow. In VsCode this extension makes HTML tags coloured inside .html, .jsx, .tsx and ...
mohamadi_arch's user avatar
1 vote
1 answer
154 views

Errors Configuring conform.nvim for Lazy-Vim: Undefined Globals and Types

I am following the Full Spec from the official documentation to configure conform.nvim for Lazy-Vim However, I'm encountering multiple errors, one of which is that Util is not recognized, even though ...
SLN's user avatar
  • 517
2 votes
1 answer
74 views

Cannot overwrite existing keybinding Shift+k in Neovim

I want to map Shift-k (K) as 5k but it is mapped to call a function vim.lsp.buf.hover() These commands dont work: map <S-k> 5k nmap <S-k> 5k noremap <S-k> 5k nnoremap <S-k&...
Sahaj Bhatt's user avatar

1
2 3 4 5
32