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 write markdown config codes by lua in neovim?

I wrote config codes in markdown.lua file, as follows: require('markdown-preview').setup { vim.g.mkdp_browser = "C:/Program\ Files/Google/Chrome/Application/chrome.exe" } But it doesn't work, error as follows: Error while calling lua chunk: ...…
ebynapura
  • 3
  • 1
  • 3
0
votes
0 answers

A plug-in doesn't work after installing on VIm

I was trying to install a plug-in "vim-surround" but it doesn't work after executing the following commands on my terminal. $ mkdir -p ~/.vim/pack/tpope/start $ cd ~/.vim/pack/tpope/start $ git clone https://tpope.io/vim/surround.git $ vim -u NONE…
0
votes
0 answers

Align chained method call in Java with Uncrustify

I want to Uncrustify to format this: IBuffer b = new Buffer(); b.add(1).add(1).add(2).add(3).add(4); to b.add(1) .add(2) .add(3) .add(4) Is there a way to achieve this? Thank you so much!
ttng_
  • 17
  • 5
0
votes
1 answer

How to store the current buffer filename with cursor position to register using neovim Lua API?

In vim I can use getcurpos() and expand('%:t'), but how does this work in lua? The solution should ideally only use the neovim api.
Jay-Pi
  • 343
  • 3
  • 13
0
votes
0 answers

How to stop VSplit from ignoring highlight background?

I have a peculiar issue. I have the following set in my init.vim which sets the background color of NeoVim to my terminals background color: highlight Normal guibg=NONE ctermbg=NONE highlight Folded guibg=NONE ctermbg=NONE highlight Question…
Rawley Fowler
  • 1,366
  • 7
  • 15
0
votes
0 answers

Neovim Lualine Winbar Coloring is incorrect on startup

Upon startup, the right separator of my winbar in lualine is colored incorrectly (note the darker background on the right): But after sourcing my lualine config file, it looks how it should: My lualine config is already required upon startup, so I…
TJ M
  • 1
  • 1
0
votes
0 answers

Strange indent behaviour in (neo)vim with Python

This issue is reproducible in vim and neovim. I'm using neovim with pretty much default values and no plugins (except the standard file plugins) and noticed a behavior that bothers me for a few years: In some situations vim gets the indenting…
Bastian Venthur
  • 12,515
  • 5
  • 44
  • 78
0
votes
0 answers

Use curried lua function as custom complete list in neovim

I'm trying to provide a curried lua function as method to call for autocomplete a command. However, it sometimes does nothing and sometimes fails with a memory segmentation error. This is a minimal reproduction example: Given this…
Danielo515
  • 5,996
  • 4
  • 32
  • 66
0
votes
1 answer

Neovim lua how to use mutable variables in keymappings

I'm using neovide (a graphical interface for nvim), so I lost ctrl+[-+] to change the font size. I'm trying to rewrite it in my lua config but I'm pretty new to lua so I'm struggling to implement the function. Here's my code : vim.g.font_size =…
0
votes
1 answer

Not an editor command CocInstall coc-rust-analyzer

Ok, so i installed coc.nvim with neobundle, by adding to my .vimrc NeoBundle 'neoclide/coc.nvim' after this i added :CocInstall coc-rust-analyzer to the same file as it mentioned in the guide. But even after I'm sure that CocInstall command is…
nojitsi
  • 351
  • 3
  • 13
0
votes
0 answers

Does asynchronous code in neovim-Lua work the same as in Javascript?

Is asynchronous code in neovim-Lua the same as it is in JS? Hello everybody. I have been taking a look at IO in Lua recently and I see there are some asynchronous APIS there. I am an experienced JS developer, so I'm more than familiar with…
Danielo515
  • 5,996
  • 4
  • 32
  • 66
0
votes
2 answers

How can i use neovim and coc.nvim for develop windows c++ apps on linux

I develop c++ apps on linux and i use neovim with coc.nvim and coc-clangd plugins. I want to develop an app for windows but i comfort with linux and neovim so i want to use them for it. But i get some include errors with some windows headers (etc.…
sabenburra
  • 93
  • 1
  • 3
  • 6
0
votes
1 answer

How to get autocomplete working in Coc version 0.0.82?

I was using Coc with Neovim and it seemed to work perfectly fine. So I got this new company laptop and after installing Neovim and copying my init.vim config the autocomplete(Tab and enter ) stopped working. A message started popping up that Coc now…
0
votes
0 answers

Using the neovim lua api to automatically open a neovim `:term` and enter text

Essentially when I'm debugging, I tend to open a new tab with four different terminals as such: ------------- | | | | | | ------------- | | | | | | ------------- In one of these terminals I would first run make to…
StarLlama
  • 380
  • 2
  • 12
0
votes
0 answers

How to design plain tex data entry helpers such as autocompletion and syntax highlighting

There are some files like GEDCOM and ADIF that are plain text files, but many people tend to work with them through GUIs. Say I wanted to do data entry on these files directly without any GUI.There are a number of things that make this a little…
Alex
  • 2,603
  • 4
  • 40
  • 73