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

How to configure alpha.nvim?

I have an init.lua file that contains: require "user.setup.alpha" as in: require "user.options" require "user.keymaps" require "user.autocmds" require "user.commands" require "user.plugins" require "user.colorschemes"…
Stephane
  • 11,836
  • 25
  • 112
  • 175
0
votes
1 answer

Neovim, how to jump back to a terminal

help terminal-input said To use `ALT+{h,j,k,l}` to navigate windows from any mode: > :tnoremap h :tnoremap j :tnoremap k :tnoremap l :inoremap…
xye
  • 11
  • 2
0
votes
1 answer

coc.nvim autocompletion for threejs

i want autocompletions for three.js in nvim , kind of like the autocompletions we get if we open three.js file on a split window on vim [still not good], i searched in coc language plugins list, i cant find a plugin which satisfy my…
ANDuser
  • 71
  • 8
0
votes
1 answer

Pointers on writing a neovim plugin to execute a series of commands on a terminal and resize it to the appropriate size?

When I'm coding in nvim, I find myself often wanting to open a job monitoring command line tool my company uses on the side. Basically I want to map a keybinding to the action :open a neovim terminal window, run a sequence of commands,…
0
votes
1 answer

Need Clarification on vim leader key

//mapping1 tnoremap // mapping2 let localleader = "\\" tnoremap C I tried to modify the above mapping by replacing '\' by a localleader; But it just prints C\ ^N in the terminal. Can anyone help me to…
Amit Kumar
  • 43
  • 2
  • 7
0
votes
1 answer

neovim nvim_dap Error: bad argument #2 to 'connect' (number expected, got nil) in java

In neovim, I am getting an error on attaching nvim_dap to a running java process. jdtls starts up fine. I add a breakpoint using \dt then i try to attach to a running java process by pressing \dc i get an error:- Error executing luv…
Aman Bains
  • 153
  • 9
0
votes
1 answer

Nvim/NERDTree creates file instead of directory

I'm using NerdTree in Neovim. To create a folder, in menu I select the (a)dd a childnode option but despite adding a "/" at the end of the foldername a file is being created.
0
votes
0 answers

Neovim Nerd Tree Plugin: Shows EVERYTHING (Windows 10)

My nerd tree plugin shows EVERY folder and file in my C:/Users/(myusername) directory. It didnt do this before. How can I change which directory it lists?
wasd
  • 21
  • 1
  • 2
0
votes
0 answers

Is it possible to automatically use LSP with project local settings in Neovim?

I'm using NeoVim and LSP (coc.nvim) as IDE. Now, I install IDE tools in each project as devdependencies, and configure global Vim setting that which IDE tools are used. I want to configure IDE tool settings in each project, then Vim to read it and…
asmka
  • 33
  • 4
0
votes
1 answer

How do I persistently change coc.nvim colours from my ~/.config/nvim/init.vim?

I understand that I can change my coc.nvim colours from inside neovim, but how do I do so permanently from the init.vim file (or otherwise), so that they're changed automatically every time I open the editor? Default colours poor for legibility:
Thomas Browne
  • 23,824
  • 32
  • 78
  • 121
0
votes
1 answer

How can I get neovim to return the cursor to the original line after formatting the file?

In order to solve the file formatting problem of vim, I simply wrote a function: function FileFormat() let cursorLine = col(".") let filetype = &filetype if filetype == 'json' %!jq . execute cursorLine elseif filetype…
aszswaz
  • 609
  • 3
  • 10
0
votes
1 answer

How to stop NeoVim from sending ^S character while I press Ctrl+S in Insert Mode?

I wanted to remap to save a file. It works fine in normal mode. But when I'm in Insert Mode and I press Ctrl+S, it just send the character ^S (as a single character). I'm using Windows 10 and Powershell to open NeoVim. Is there a way that I…
0
votes
1 answer

Refactor lua table - neovim configuration

Hi everyone and thanks in advance for your input. I use lua for the formatter plugin configuration, the following code is my current configuration. require('formatter').setup({ filetype = { javascript = { -- prettier function() …
Usiel
  • 671
  • 3
  • 14
0
votes
3 answers

neovim/nvim tree doesn't open current directory only the parent directory with git

If I have a parent directory that has git and a bunch of sub directories and I cd into one of the sub directories and launch neovim, neovim/nvim tree would show the parent directory that has a git instead of showing the sub directory i opened it…
Nawaf
  • 87
  • 1
  • 2
  • 6
0
votes
1 answer

how can I install vundle to my neovim in powershell

I'm using powershell neovim, and I want to install a plugin named auto-pairs to my neovim, I tried to edit the _vimrc and ~/vimfile but it doesn't work at all. then I found my neovim file in ~/AppData/Local/nvim and nvim-data, here's their structure…
fristzzz
  • 1
  • 1