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
12
votes
3 answers

How to set python interpreter in neovim for python language server depending on pyenv / virtualenv

I am using the pyright LSP in neovim (0.5). It works, but seems to only pick up on packages available in the standard python installation. It does not autocomplete for packages not in the base python, but in my pyenv environment. In VSCode this is…
Mike
  • 3,775
  • 8
  • 39
  • 79
12
votes
4 answers

How to query neovim API for the current working directory?

The neovim API provides nvim_set_current_dir(), but apparently does not expose a way to query cwd. How can I go about doing this?
thisisrandy
  • 2,660
  • 2
  • 12
  • 25
12
votes
1 answer

Open file in a running nvim-qt instance

I want to open new files from the command line on Windows in a single nvim-qt instance that is already open. I know the existence of the --server option, but how do I know the IP or the socket name or path of the running instance?
el_technic0
  • 553
  • 6
  • 14
12
votes
1 answer

VIM undo: Why does the cursor jump to the wrong position when undoing `undojoin`?

EDITs: I've simplified the function and clarified the question. Original question is still available further down the page. Crossposted onto vim_dev mailing list: https://groups.google.com/forum/#!topic/vim_dev/_Rz3uVXbwsQ Reported as a bug to…
UrsaDK
  • 854
  • 13
  • 27
11
votes
1 answer

How to override color scheme in neovim lua config file?

how can I override some color scheme value in neovim lua config file? I am trying to use .lua instead of .vim. Previously in my init.vim file I have this to override some settings I want to enable these settings for init.lua file also. How I can…
monzim
  • 526
  • 2
  • 4
  • 13
10
votes
6 answers

How to source init.lua without restarting neovim

Is there a clean way to reload a neovim init.lua config and all its modules (using the require() function) without restarting neovim? I've read on another post that :luafile $MYVIMRC was supposed to accomplish just that but it doesn't reload those…
mduboule
  • 161
  • 1
  • 1
  • 10
10
votes
2 answers

Why is neovim unable to locate the packer module?

I'm trying to install packer.nvim using the quickstart guide. I cloned the repository using git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim and created the file…
wyoumans
  • 350
  • 1
  • 3
  • 10
10
votes
8 answers

neovim [coc.nvim] build/inderx.js not found, please install dependencies and compile coc.nvim : yarn install

I trying to build, yarn build but it shows me yarn run v1.22.17 error Couldn't find a package.json file in "/home/darth/.config/nvim/plug-config" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Darth Voyage
  • 103
  • 1
  • 1
  • 5
10
votes
1 answer

What is set mouse = a for in nvim?

I'm not sure I can ask this question, but I can't find information about what mouse = a is for, I just find that it can no longer be copied or pasted with "ctrl + c" and "ctrl + v", however I manage to do as I normally would, I want to know what is…
KSIER45
  • 129
  • 1
  • 1
  • 6
10
votes
4 answers

Neovim on Windows can't find python provider

I'm trying to install neovim on Windows and import my previous init.vim file. I've previously defined my snippets in ultisnips. I'm using windows and ahve tested this in another version of windows and it works, however, at the moment when I…
Cornel Verster
  • 1,664
  • 3
  • 27
  • 55
10
votes
0 answers

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 and windows so if there are some OS specifity you…
9
votes
4 answers

How to make Telescope ignore files inside node_modules?

I'm new in the VIM / NEOVIM world so I probably am doing something else wrong, but from the docs it says that Telescope will ignore all the files registered in the .gitignore file, which is definitively there but it still searches in node_modules So…
Daniel Rodríguez Meza
  • 1,167
  • 1
  • 8
  • 17
9
votes
4 answers

Neovim lsp auto-fix / fix-current?

I was looking for a solution similar to CoC's coc-fix-current but using native lsp for Neovim 0.5 but I did not find such thing in the documentation, is there any way to achieve this through other method?
Oscar Lastra
  • 93
  • 1
  • 5
9
votes
1 answer

cannot paste from clipboard in neovim nightly

after uninstalling latest and installed nightly I cannot paste from clipboard, double checked my init.vim for set clipboard=unnamedplus any suggestion? update 21st May following Matt's comment, running :checkhealth provider…
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
9
votes
2 answers

How to change nvim path to .config

I just started with this from neovim and ubuntu and I don't know why when I install neovim it is not in .config, putting the command which nvim in the terminal tells me that it is in / usr / bin / nvim and to put the configuration I need it to be in…
PACO PEPE
  • 91
  • 1
  • 1
  • 2