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

vim: How to create a shortcut on ALT key to insert text while in insert mode?

I usually press alt + , to insert <, it works fine in my zsh terminal and on every other application, but unfortunatly not on vim or neovim. I tried following but nothing worked: map "<" map ='<' I appreciate any help
vimscape
  • 11
  • 2
0
votes
0 answers

How Can I Temporarily Change the Cursor Shape in a Function in Neovim

In Neovim, the cursor shape automatically changes based on the mode you are in. I am writing a function in which I temporarily want to change what the cursor looks like in insert mode, then enter insert mode and do something, return to normal mode,…
Amarakon
  • 173
  • 5
0
votes
0 answers

How does vimscript execute functions through multiple threads?

I have a function for generating tags via ctags: :function! UpdateCtags() if !has('linux') echohl ErrorMsg | echo 'This function only supports running under the linux operating system.' | echohl None return endif echo…
aszswaz
  • 609
  • 3
  • 10
0
votes
0 answers

Neovim clangd not indexing all include files

I have a massive C project that is build by cmake, I generate the compile_commands.json and all the includes are there, but for example in main.c it cannot find libxml/parser.h. In the compile_commands.json main.c is compiled with arm-none-eabi-gcc…
Gian Laager
  • 474
  • 4
  • 14
0
votes
1 answer

nvim treesitter compilation error while loading

This error comes while i open nvim I copied config from my old pc and pasted to new pc, the same config worked in other pc nvim-treesitter[rust]: Error during compilation /usr/bin/ld: cannot find -lstdc++
Gowtham V
  • 67
  • 1
  • 2
  • 7
0
votes
1 answer

How can I use Telescope.nvim to complete a path in insert mode?

Fzf.vim implements a fuzzy finder in insert mode, extending the native ins-completion functionality. For example: in insert mode, we can map to enable Fzf.vim to fuzzy find and insert file names with relative paths (fzf-complete-path).…
Gustavo Basso
  • 129
  • 11
0
votes
1 answer

Importing AppKit.h: function does not return NSString

I am using Nvim to try and develop a Mac application. I have just imported AppKit.h to instantiate a sharedApplication. I am using coc-clangd for autocompletion. I am getting the following error when I import AppKit.h. In included file: function…
Debabrata Mondal
  • 101
  • 4
  • 12
0
votes
1 answer

how do I start nvim in search mode? (I do not want to execute a search, merely for nvim to be ready to accept a search string)

I would like to open a file and have nvim automatically be in search mode once the file is opened. I need to find the correct command to use, probably in the form of nvim -c Command file.txt To clarify, I want to start nvim and be able to start…
tg0h
  • 575
  • 5
  • 17
0
votes
1 answer

Nvim Coc: How to change matching text color in suggestion box

This is what the official repo of coc.nvim gives as documentation for Coc configuration. An update changed the option names, and the defaults, I'm willing to revert it, but I'm out of ideas. This is what my suggestions look like. I want to change…
0
votes
1 answer

Lua Nvim —— Error loading lua [string ":lua"]:5: '}' expected (to close '{' at line 3) near '['

I have a init.vim file and have some embedded lua that was working perfectly fine until just now. It keeps giving me the error below: Error loading lua [string ":lua"]:5: '}' expected (to close '{' at line 3) near '[' I have double and triple…
0
votes
0 answers

LSP config ttserver suggests the same completions

I faced with problem that ttserver in LSP config suggests me certain the same suggestions depended on different servers. Here is an example below example - https://i.stack.imgur.com/5K31A.png Here is my lsp config too lsp-config -…
arteche
  • 1
  • 1
0
votes
1 answer

[Neo]Vim can't open sourced file

So I've got the following init.vim under ~/.config/nvim/ source plugins.vim plugins.vim lives in the same directory. When I'm opening [Neo]Vim I always get Error detected while processing /home/luke/.config/nvim/init.vim: line 1: E484: Can't…
Luke
  • 365
  • 3
  • 10
0
votes
4 answers

Is there a way to get help for some C functions inside of vim/Neovim?

This question may be a little off topic. But I was wondering if there was a way for me to look at the descriptions of C functions using vim or neovim. Is it possible to look at their documentations by doing something like :help? This would really be…
Diwas10
  • 105
  • 7
0
votes
1 answer

EOFError on Try, Except, Else from already working code

Doing a passwordmanager project and kept getting EOFErrors i did not understand, and chalked it up to my inexperience. Then when following the CS50P course, i also got an EOFError on code i can clearly see working for David (The tutor) I am using…
flixeren
  • 3
  • 2
0
votes
0 answers

Neovim: lua vs vimscript question (same function)

I'm using the code snippet as shown below to "lazyload" some of my plugins for Neovim. I wrote the same function, once in LUA and once in vimscript. I would like to use the LUA implementation to try and get away from vimscript; however, in my tesing…