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 do I 'better' my paths to lsp server binaries whilst using nvim-lsp-install?

At the moment, every time I install a new LPS server using nvim-lsp-installer, I add an entry to my .zshenv, so that the bin folder of the server is available to $PATH: PATH="$HOME/.local/share/nvim/lsp_servers/python/node_modules/.bin:$PATH" The…
0
votes
0 answers

How to change cursorline color when changing to command mode

This code changes the cursorline color when in insert, normal and replace mode at least but doesn't really work in visual mode and doesn't work at all in command mode. Whats wrong? function Pain() local colors = { bg = "#202328", fg =…
MikiS
  • 11
  • 4
0
votes
1 answer

neovim: display column number on the left of screen + make other ones a little bit transparent

I know how to display column number on the left of the screen (set number) but idk how to make something like that: https://image-is-random.me/VDD5OT4L (upload systems screensshot) basicly i want to keep line where i am yellow and make other ones a…
user18066953
0
votes
1 answer

neovim integration in vs code errors

I get these 2 errors the moment I open vscode. Neovim works from the terminal but I don't think it does in vscode. I have no idea why because I am a novice and I just started seriously getting into programming like 2 months ago so please bare with…
0
votes
1 answer

Neovim - Shortcut for native autocomplete Ctrl + n

Hello, I want to add a shortcut in neovim to take advantage of its native autocomplete which is activated with Ctrl + n, when typing in insert mode I want to press tab and autocomplete. The following codes work for me, especially the lua code. But…
Usiel
  • 671
  • 3
  • 14
0
votes
0 answers

Check if an executable exists

I want to change this VimScript to lua, but I don't know how to check if an executable exists. if executable('curl') In this case I can just use the executable function defined by vim. But I want to know how would I do it without using vim's…
user13411047
0
votes
1 answer

nvim for python, ipython

I am learning python and new to nvim. Using iterm2 is there way to send lines of code to the second tab for run with opened ipython? As far as I know there is a plugin vim-slime but I am not sure if it is the solution to my question. Thanks.
Mr. Black
  • 13
  • 3
0
votes
1 answer

Remove leading and trailing whitespaces from string in Vim

I need a function which strips the leading and trailing whitespaces from a string. func! RemoveWhitespaces(String) ... return formattedString endfunc I was only able to find ways to substitute lines in buffer with their whitespaces stripped…
Bharath Hegde
  • 186
  • 1
  • 7
0
votes
1 answer

Vim: open a file based on a git command

Goal: map n to open "$(git rev-parse --show-toplevel)/notes.md" I know how to do mappings, and the above git command works fine on the command line. Marrying the two together in vim has been surprisingly hard. I tried running vim…
0
votes
1 answer

(nvim-dap) Clear breakpoints?

How can I clear all current breakpoints at ones in nvim-dap? UPD: I wrote this little function to achieve that: function! ClearBreakpoints() exec "lua require'dap'.list_breakpoints()" for item in getqflist() exec "exe " . item.lnum…
Oleg Khalidov
  • 5,108
  • 1
  • 28
  • 29
0
votes
0 answers

brew install neovim failed

Why the below error occurred when I wanted to install neovim via a homebrew? ==> Installing dependencies for neovim: libuv, luajit-openresty, luv, msgpack and tree-sitter ==> Installing neovim dependency: libuv ==> Pouring…
star_stan
  • 11
  • 2
0
votes
1 answer

NeoVIM | E81: Using not in a script context

I'm trying to make g++ run as a function :call in vim> For some reason that I don't understand vim throws me an E81 error when I try to execute the s:compile_run_cpp() function. function! s:compile_run_cpp() abort let src_path = expand('%:p:~') …
boomcreeper11
  • 177
  • 2
  • 14
0
votes
0 answers

Find and replace '\' in vim

I am trying to replace D(t by \zb(t using the following vim command :s%|D(t|\zb(t,|g but I get Unknown operator '\zb' How can I replace string with \ inside or replace strings with other strings that have a \ inside?
Mike
  • 3,775
  • 8
  • 39
  • 79
0
votes
1 answer

neovim lsp diagnostic get_count deprecated but unused

I'm using nvim v0.7.0-dev, Ubuntu 20.04 LTS. And I see the following error: vim.lsp.diagnostic.get_count is deprecated. See :h deprecated But I'm not using 'get_count', so, I can't change it, or remove or whatever. Why I see this error? and how can…
AssertionError
  • 136
  • 1
  • 10
0
votes
1 answer

How do you allow Neovim CoC to see include directories

Coc in Neovim seems to be unable to see #include since I'm guessing that it's include path isn't known by coc. How can I allow coc to see this include path?
Kalcifer
  • 1,211
  • 12
  • 18
1 2 3
99
100