Jump to content

Neovim: Difference between revisions

import from old wiki
(changed the order of paragraphs (NixOS install/configuration before home-manager install/configuration. Added information about distributions.)
(import from old wiki)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[https://neovim.io Neovim] is a fork of [[Vim]] aiming to improve the codebase, allowing for easier implementation of APIs, improved user experience and plugin implementation.
[https://neovim.io Neovim] is a fork of [[Vim]] aiming to improve the codebase, allowing for easier implementation of APIs, improved user experience and plugin implementation.


Due to the large number of plugins, it is possible to extend and configure neovim to fit the exact needs of the user. Many users start working with neovim with a preconfigured neovim distribution (such as LazyVim, AstroVim, NVChad) or use the preconfigured NixOS package for LunarVim. This way you can learn what is possible. Experienced users often advise to familiarize themselves with neovim and then create their own configuration from scratch.
Due to the large number of plugins, it is possible to extend and configure neovim to fit the exact needs of the user. Many users start working with neovim with a preconfigured neovim distribution (such as [https://www.lazyvim.org/ LazyVim], [https://astronvim.com/ AstroVim], [https://nvchad.com/ NVChad]) or use the preconfigured NixOS package for [[LunarVim]]. This way you can learn what is possible. Experienced users often advise to familiarize themselves with neovim and then create their own configuration from scratch.


For people who like the modal text editors in a terminal but don't want to spend so much time configuring it, the Helix editor might be the right choice.
For people who like the modal text editors in a terminal but don't want to spend so much time configuring it, the [[Helix]] editor might be the right choice.


== Installation ==
== Installation ==
Line 148: Line 148:
== Tips and tricks ==
== Tips and tricks ==


=== Build Neovim using Nix ===
=== Neovim Nightly ===


You can also compile Neovim using nix. For this, the Neovim GitHub page has more information on this:
You can also use the [https://github.com/nix-community/neovim-nightly-overlay Neovim Nightly Overlay] to install the most recent current nightly version of neovim.
[https://github.com/neovim/neovim/wiki/Building-Neovim#nixos--nix Neovim Guide].


The Neovim repository also contains a flake.
You can run the master version via the following command:
You can run the master version via the following command:


  nix run "github:neovim/neovim?dir=contrib"
  nix run "github:nix-community/neovim-nightly-overlay"


Finally, there is a [https://github.com/nix-community/neovim-nightly-overlay Neovim Nightly Overlay].
==== Developing / Building ====
 
If you want to develop neovim, you may use
 
  nix develop "github:nix-community/neovim-nightly-overlay"
 
to acquire a suitable environment.


=== Note on Lua plugins  ===
=== Note on Lua plugins  ===