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
5
votes
0 answers

How do I get gopls to work in NeoVim with lspconfig?

gopls in neovim, using lspconfig, does not seem to be working with any go file, even one that has a .git or go.mod file. My lspconfig can be found below, and after that is a LspInfo in a .go file showing it should be working. Any help would be much…
Darst King
  • 63
  • 4
5
votes
0 answers

null-ls: failed to run generator: ... mypy: can't read file

I have null-ls setup with nvim and have a mypy diagnostic in my sources that I run on save null_ls.builtins.diagnostics.mypy.with({ method = null_ls.methods.DIAGNOSTICS_ON_SAVE}), But as soon as I do, for example, nvim main.py, I get this…
haulvulgar
  • 98
  • 1
  • 6
5
votes
2 answers

Override default settings in NvChad Nvim

I wish to change the layout_strategy for the telescope plugin from the NvChad default value of horizontal to vertical. This should be possible by setting layout_strategy = "vertical" somewhere... According to the NvChad docs I can override the…
LMB
  • 384
  • 2
  • 6
  • 18
5
votes
2 answers

How to install nvim-treesitter on Apple Silicon (M1 Max)? Getting error: Cannot install tree-sitter-cli for architecture arm64

I'm trying to set up nvim on my MBP, and everything went well except for the last step, which is installing nvim-treesitter, after a short installing routine it throws this error: nvim-treesitter[phpdoc]: Error during `npm install` (required for…
flppv
  • 4,111
  • 5
  • 35
  • 54
5
votes
0 answers

I got this error after upgrading neovim to version 0.7.2-2

I try to update neovim, to the latest version,It installed correctly, but when trying to view the version (nvim -v) give me this error: vim/_init_packages.lua: cannot load incompatible bytecode stack traceback: [C]: at 0x56425eba1870 [C]:…
Alistercry
  • 51
  • 3
5
votes
3 answers

How do you write 'plus equals' in Lua for a vim setting?

How does set mouse+=a translate to the equivalent Lua Neovim setting?
lovelikelando
  • 7,593
  • 6
  • 32
  • 50
5
votes
4 answers

How to include specific hidden file/folder in search result when using telescope.nvim?

I'm using neovim and Telescope as a finder (find_files, live_grep, file_browser), by default Telescope is ignoring hidden files and files included in .gitignore - how can I add exception (e.g. .gitlab-ci file/folder) to this list? so Telescope will…
Michu
  • 69
  • 1
  • 5
5
votes
1 answer

What causes neovim ram problem with typescript?

I've been using lunarvim to programming in typescript, so, i'm using tsserver + prettier + eslint... I have 12GB ram. (Intel i5 10210u) SSD With brave, discord and lunarvim opened, my ram monitor show about 45%-60% of usage. At sometime, my ram…
5
votes
1 answer

The Lua error:"E5113: Error while calling lua chunk:xattempt to call fiel d 'setup' (a nil value)"

My OS is Arch Linux, the edition of Lua is 5.4.4 I'm trying to configure the neovim pluging, nvim-tree. And my configuration Lua file are as follow. local status, nvim_tree = pcall(require, "nvim-tree") if not status then vim.notify("can't find…
wuliJerry
  • 101
  • 1
  • 2
  • 5
5
votes
3 answers

How to set up Angular Language Service in Neovim

My setup at the moment looks like this: local cwd = vim.fn.getcwd() local project_library_path = cwd .. "/node_modules" local cmd = { DATA_PATH .. "/lsp_servers/angularls/node_modules/@angular/language-server/bin/ngserver", …
5
votes
2 answers

Telescope find_files finds garbage instead of wanted file

I am new to NeoVim and Telescope so I tried to use NvChad When I try to use :Telescope find_files and write whole name of file that exist only in one place in entire project - telescope instead of finding that one particular file shows me thousands…
Morph
  • 165
  • 2
  • 9
5
votes
1 answer

doesn't work in neovim in PowerShell in Windows terminal

everyone! I’m configuring neovim for “Windows terminal”. And I installed the coc plugin. And I would like to use for triggering suggestions like in VSC. But the problem is that in neovim doesn't work at all. This is the remap I try to use: " Use…
Andrew O.
  • 171
  • 1
  • 9
5
votes
1 answer

Neovim lua config : New tab size isn't applied in C++ files

I'm configuring Neovim 0.5 using Lua. I set the tab size to 4 in init.lua, and it works. But in C++ files, the tab size is 8, and I have to execute :set shiftwidth=4, :set tabstop=4 and :set expandtab manually. Here are the config files…
yoanndw
  • 51
  • 1
  • 2
5
votes
2 answers

How to change Neovim config directory

My current config file is at C:\Users\User\AppData\Local\nvim But I set up a new config setup in C:\Users\User\.config\nvim How can I change it so that the config directory reflects this change? Thanks!
Revise
  • 229
  • 4
  • 11
5
votes
1 answer

Pyright, report missing imports error in neovim

I'm getting this error, which doesn't make sense because the libraries are installed, and the correct python interpreter path is selected. I have no clue where the issue could be.
gxp2
  • 149
  • 2
  • 11