Questions tagged [neovim]

Neovim is a fork of Vim that aims to improve upon Vim's out-of-the-box experience and allow for more powerful plugins and GUIs.

Neovim is a refactor, and sometimes redactor, in the tradition of Vim. It is not a rewrite but a continuation and extension of Vim. Many clones and derivatives exist, some very clever, but none are Vim. Neovim is built for users who want the good parts of Vim, and more.

Goals

  • Enable new contributors, remove barriers to entry.
  • Unblock plugin authors.
  • Deliver a first-class Lua/LuaJIT scripting alternative to Vimscript.
  • Target all platforms supported by libuv.
  • Leverage ongoing Vim development.
  • Optimize out of the box, for new users but especially regular users.
  • Deliver consistent cross-platform experience.
  • In matters of taste/ambiguity, favor tradition/compatibility...
  • ... but prefer usability if the benefits are extreme.

Non-goals

  • Vim9script (or anything later than Vimscript v1)
  • Turn Vim into an IDE
  • Limit third-party applications (such as IDEs!) built with Neovim
  • Deprecate Vimscript
  • POSIX vi-compatibility

Resources:

1852 questions
7
votes
1 answer

How do you use to cycle through completion suggestions with ALE?

When using Ale, I'd like to use the Tab key to cycle through completion suggestions. By default, the arrow keys do it. What are the various configuration options for cycling through the suggestions as well as selecting the correct completion?
lovelikelando
  • 7,593
  • 6
  • 32
  • 50
7
votes
1 answer

Vim Set Option With String Concatenation

I like to do the following in my .vimrc: if has('nvim') let g:base_data_folder = $HOME . '/.nvim' else let g:base_data_folder = $HOME . '/.vim' endif set backupdir = g:base_data_folder . '/backup' Unfortunately the last line doesn't work and…
weilbith
  • 564
  • 4
  • 20
7
votes
2 answers

Configuring ALE plugin with Pylint

I'm using ALE with Pylint and pylint-django, but I'm not able to configure it. It shows a linter warning while browsing any file within a Django project: no-member: User class has no member objects for below code. on code like the following: from…
Ganesh
  • 3,128
  • 2
  • 17
  • 27
7
votes
2 answers

Is there a VIM Git timeline?

So far, I am trying to understand how to use :Glog in combination with :Gdiff, to create a nice overview like the git-time-machine plugin for the Atom editor: The overview exists of 3 windows On the left: the current file in the working copy. On…
Sem
  • 4,477
  • 4
  • 33
  • 52
7
votes
1 answer

GHC-mod looking for settings file in wrong directory

I use a number of Haskell plugins in my editor (Neovim), one of which is ghcmod-vim, which works together with syntastic to provide syntax checking as I write Haskell code. At one point, I had installed GHC for Mac OS X as a temporary workaround for…
Jules
  • 14,200
  • 13
  • 56
  • 101
7
votes
2 answers

neovim can not find python correctly because of virtualenv or conda?

I install YouCompleteMe and UltiSnips plugins in my neovim. Normally, everything is ok. But I am using MiniConda in my python developing, MiniConda is something like virtualenv, I have a virtual python env called parser, when I activate this…
roger
  • 9,063
  • 20
  • 72
  • 119
6
votes
6 answers

file init.lua script in neovim not working

so i decided to use neovim instead of vscode, im a beginner to that, i created the init.lua file on ~/.config/nvim/, with simple script : print("hello world") the script never executed, i also tried this way on this video…
kxown
  • 95
  • 1
  • 6
6
votes
2 answers

clangd doesn't recognize standard headers

This question has been asked and answered a bunch of times, but none of the answers seem to work for me. I've been trying to get clangd set up in nvim lsp. I used bear to generate compile_commands.json, but clangd still gives me errors telling me…
iHnR
  • 125
  • 7
6
votes
2 answers

vimscript: calling function inside inoremap throws "unknown function"

I've been using Neovim with CoC for a while with no problems. Yesterday I upgraded my OS from Ubuntu 21.04 to 22.04. Without any change to my vim config files, an error pops up. I'll explain better with examples: These are my config files (splitted…
6
votes
4 answers

Where can I check my neovim lua 'runtimepath'?

I'm new to neovim (or vim) settings and I was trying to require '.lua' file but failed. This is my directory structure. ~/.config/nvim ├ init.vim ├ /lua ├ basic.lua and these are my codes. ~/.config/nvim/init.vim lua…
hyunsik lim
  • 63
  • 1
  • 3
6
votes
1 answer

Nvim completion menu issue

I'm using lspkind and nvim-cmp with Neovim 0.7. When or is pressed to scroll through the items from the list of possible completions it gets completely overwritten by the standard completion suggestions. See link for an example. Why does…
ttyago
  • 63
  • 1
  • 4
6
votes
1 answer

How to configure the DAP debugger under neovim for typescript?

I'm trying to configure the DAP debugger in Neovim for a typescript application. I added the DAP plugin: use "mfussenegger/nvim-dap" I also have a config.lua file containing the adapter and configuration: local status_ok, dap =…
Stephane
  • 11,836
  • 25
  • 112
  • 175
6
votes
2 answers

`vi{` increases the visual selection, but can I reduce the visual selection in a similar way?

So if I've got text like: if answer == 42 { #1 if bugs == 'bunny' { #2 if injury == 'but a scratch' { #3 // do the thing #4 } #5 …
beyarkay
  • 513
  • 3
  • 16
6
votes
3 answers

NeoVim not loading init.vim file

I just installed Neovim and created a simple init.vim file (located at HOME/.config/nvim/init.vim), and when I do :source % the script works, but when I exit and reopen Neovim, the file doesn't get loaded and I get the normal Neovim without the…
dumb_ptr
  • 85
  • 1
  • 1
  • 4
6
votes
1 answer

Neovim built-in LSP shows No code actions available for Python files

When I open a python file, diagnostics seem to be working fine. Then I navigate to a line with a diagnostic error, press the shortcut to invoke code actions ('ca' in my case) and I get a message 'No code actions available'. I have tried…