Neovim: Difference between revisions

Ardenet (talk | contribs)
Add `tvar` tag and `Special:MyLanguage/` prefix on link
DHCP (talk | contribs)
m corrected the reason
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{low quality|reason=<translate>The provided nix code snippets in [[#Tips_and_tricks]] look out of context, lacking indication where the provided configuration belongs (e.g. home-manager, configuration.nix or elsewhere?); [[#Installation]] and [[#Configuration]] mix home-manager and configuration.nix code in monolithic code blocks. [[#Beginning]] is over too wordy.</translate>}}
{{infobox application
{{infobox application
   |name=Neovim
   |name=Neovim
Line 6: Line 7:
   |developer=Neovim Core Team & Community
   |developer=Neovim Core Team & Community
   |firstRelease=November 1, 2015
   |firstRelease=November 1, 2015
   |latestRelease=Nvim 0.11.2 (May 30, 2025)
   |latestRelease=Nvim 0.12.2 (April 22, 2026)
   |status=Active
   |status=Active
   |license=[https://www.apache.org/licenses/LICENSE-2.0 Apache 2.0] (with parts under Vim license)
   |license=[https://www.apache.org/licenses/LICENSE-2.0 Apache 2.0] (with parts under Vim license)
Line 36: Line 37:
</translate>
</translate>


{{code|lang=bash|line=no|1=$ nix-shell -p neovim}}
<syntaxhighlight lang="console">
$ nix-shell -p neovim
</syntaxhighlight>


<translate>
<translate>
Line 125: Line 128:
<translate>
<translate>
<!--T:12-->
<!--T:12-->
== Tips and Tricks ==
== Tips and tricks ==
{{expand}}
{{expand}}


==== Package Variations ==== <!--T:15-->
==== Nix configuration frameworks ====
 
[https://github.com/nix-community/nixvim Nixvim] and [https://github.com/NotAShelf/nvf nvf] provide a framework for declaratively configuring neovim with [[Nix (language)|Nix]]. They support, among the other things, plugin configuration, as well as mixing in plain Lua config snippets.
Linux and Darwin platforms are supported using standalone Nix, [[NixOS]] or [[Home Manager]] modules.
 
==== Package variations ==== <!--T:15-->


<!--T:44-->
<!--T:44-->
Line 137: Line 145:
</translate>
</translate>


{{code|lang=bash|line=no|1=$ nix run "github:nix-community/neovim-nightly-overlay"}}
<syntaxhighlight lang="console">
$ nix run "github:nix-community/neovim-nightly-overlay"
</syntaxhighlight>
<translate>


<translate>
==== Plugin management ==== <!--T:21-->
==== Plugin Management ==== <!--T:21-->
</translate>
</translate>


Line 235: Line 245:


<translate>
<translate>
==== Frameworks ==== <!--T:18-->
==== Pre-made distributions ==== <!--T:18-->


<!--T:45-->
<!--T:45-->
Line 255: Line 265:
   },
   },
  })
  })
  vim.cmd([[ packloadall]] ) -- load plugins outside of lazy
  vim.cmd("packloadall") -- load plugins outside of lazy
}}
}}


Line 314: Line 324:
* [https://search.nixos.org/options?channel=unstable&query=programs.neovim NixOS options for Neovim] – System-level Neovim configuration.
* [https://search.nixos.org/options?channel=unstable&query=programs.neovim NixOS options for Neovim] – System-level Neovim configuration.
* [https://discourse.nixos.org/search?q=neovim Neovim discussions on NixOS Discourse] – Community tips, troubleshooting, and use cases.
* [https://discourse.nixos.org/search?q=neovim Neovim discussions on NixOS Discourse] – Community tips, troubleshooting, and use cases.
* [https://github.com/nix-community/neovim-overlay Neovim Overlay on Nixpkgs] – For nightly builds and additional Neovim packages.


== References == <!--T:27-->
== References == <!--T:27-->