Neovim: Difference between revisions
Add `tvar` tag and `Special:MyLanguage/` prefix on link |
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. | |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> | ||
<syntaxhighlight lang="console"> | |||
$ nix-shell -p neovim | |||
</syntaxhighlight> | |||
<translate> | <translate> | ||
| Line 125: | Line 128: | ||
<translate> | <translate> | ||
<!--T:12--> | <!--T:12--> | ||
== Tips and | == Tips and tricks == | ||
{{expand}} | {{expand}} | ||
==== Package | ==== 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> | ||
<syntaxhighlight lang="console"> | |||
$ nix run "github:nix-community/neovim-nightly-overlay" | |||
</syntaxhighlight> | |||
<translate> | |||
==== Plugin management ==== <!--T:21--> | |||
==== Plugin | |||
</translate> | </translate> | ||
| Line 235: | Line 245: | ||
<translate> | <translate> | ||
==== | ==== Pre-made distributions ==== <!--T:18--> | ||
<!--T:45--> | <!--T:45--> | ||
| Line 255: | Line 265: | ||
}, | }, | ||
}) | }) | ||
vim.cmd( | 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. | ||
== References == <!--T:27--> | == References == <!--T:27--> | ||