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
0
votes
1 answer

Adding neovim to home-manager config leads to permission problem

When adding neovim to my home-manager config (nix on MacOs), like so programs.neovim = { enable = true; package = pkgs.neovim; viAlias = true; extraPackages = [ pkgs.rnix-lsp ]; }; I get the following error these 5…
wirrbel
  • 3,173
  • 3
  • 26
  • 49
0
votes
1 answer

NeoVim yank inside pattern

I have a code like: $class->function('passedValue'); // some code... $myVar = $class->function('anotherPassedValue'); // more code... $anotherVar = $class->function('yetAnotherPassedValue'); And I want to YANK to system memory all the values…
Borjovsky
  • 758
  • 2
  • 10
  • 24
0
votes
2 answers

How do you copy text from a diagnostic float window in Neovim/Lunarvim?

I'm on Lunarvim and I can check the line diagnostic with gl. But I don't know how to go there with the cursor and copy the text, the mouse doesn't work either.
Axeltherabbit
  • 680
  • 3
  • 20
0
votes
0 answers

I want to remap Control+Insert to something different in vim

And I don't know the syntax to the Insert key. Where do I find it? This is the idea: noremap "+y
Axlefublr
  • 13
  • 3
0
votes
0 answers

Calling a function, and then sending a key in neovim

map z. call repeat(VSCodeNotify('editor.action.commentLine')j, v:count1) The idea is to call the vscode command for commenting, and then the down key. With that, if I pass 5z., the next 5 lines get commented out This code doesn't work.…
Axlefublr
  • 13
  • 3
0
votes
1 answer

How to get prompt value in telescope.vim?

When using the live_grep picker in telescope, I would like to be able to map a key to open the current search terms in CtrlSF so I can do a mass search and replace. How can I pass the search terms to another function?
synic
  • 26,359
  • 20
  • 111
  • 149
0
votes
0 answers

How to pass a character to a key mapping in neovim

I want to make a simple key mapping where I insert a char between a word starting the cursor in the first letter of the word. My current key binding is this: vim.api.nvim_set_keymap('n', 'a', 'i\"ea\"', { noremap = true }) But I…
GrimyCanga
  • 21
  • 3
0
votes
1 answer

Is there a good way to open a file from within Neovim in a VSCode project?

Say I have a project in a directory called project-foo. This project has multiple files and subdirectories. In vim/neovim, my pwd is project-foo and my open buffer is project-foo/src/test/bar.js. How can I open this file in VSCode in the project…
loeschg
  • 29,961
  • 26
  • 97
  • 150
0
votes
0 answers

Haskell Language Server prompts on nvim persist

I'm using the Haskell language server with coc.nvim with neovim as a dev environment. However, sometimes the prompts proposed by the language server, eg. "[typecheck -Wunused-matches] ..." persist on the display overlayed over the nvim window. I was…
adi
  • 1
  • 1
0
votes
1 answer

How to stop vim-surround removing newline?

With my cursor on the top curly brace, when I use c-s-{-( this piece of code: test { hello world hello world } gets transformed into this: test ( hello world hello world ) Whereas I would like it to respect the original whitespace,…
gxk28
  • 85
  • 6
0
votes
1 answer

(Neo)vim see macro text as it is being recorded

So if I'm recording a macro, I sometimes make a silly mistake, or I'll do something and lose track of the previous key that I pressed. Is it possible to show the state of the current macro that I'm recording, as I'm recording it? (probably in the…
beyarkay
  • 513
  • 3
  • 16
0
votes
0 answers

ray-x/go.nvim attempt to index a boolean value

I'm trying to add ray-x/go.nvim plugin to my neovim setup. I added the plugin in my plugins.lua Then I'm trying to setup the plugin using require('go').setup(). Error detected while processing /home/rajkumar/.config/nvim/init.lua: E5113: Error…
user51
  • 8,843
  • 21
  • 79
  • 158
0
votes
1 answer

Neovim LSP capabilities not exported in Mason

I am new to Neovim and lua as programming language. I am trying to setup a Neovim as a full complete IDE. My issue deals with Mason and LSP capabilities. It seems that my LSP server is executing but my configuration is not correctly setup properly.…
JPV
  • 1,079
  • 1
  • 18
  • 44
0
votes
1 answer

How do I rebind `hjkl` to `jkl;`

I've been trying to rebind to proper touch typing keys, and it's actually more complicated I expected. This is my init.vim: " Normal mode nmap ; nmap l nmap k nmap j nnoremap h ; " Visual mode vmap ; vmap l…
JakubGamer
  • 127
  • 10
0
votes
0 answers

NVIM html javascript file doesn't work in live server

Iam new to neovim and I don't know how to solve this problem: In my init.vim Ive installed all the javascript plugins. There are two files in my WWW folder (.html, .js file). If I run an javascript in the index.html file, it SHOWS the script on my…
rrob
  • 1
  • 2