Neovim: Difference between revisions

Layer-09 (talk | contribs)
Included tree-sitter, improved text and code, removed clutter
Layer-09 (talk | contribs)
m Corrected a word
 
(3 intermediate revisions by 2 users not shown)
Line 78: Line 78:
== Tips and Tricks ==
== Tips and Tricks ==


==== Where to see a list of options? ====
==== Location of Options ====
The home manager options are defined in the following [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.neovim.enable Home Manager Options Manual].
The home manager options are defined in the following [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.neovim.enable Home Manager Options Manual].


The global options are listed on [https://mynixos.com/search?q=nixpkgs%2Foption%2Fprograms.neovim MyNixOS].  
The global options are listed on [https://mynixos.com/search?q=nixpkgs%2Foption%2Fprograms.neovim MyNixOS].  


==== Can I use the latest version? ====
==== Neovim Nightly ====
Have a look ay the [https://github.com/nix-community/neovim-nightly-overlay Neovim Nightly Overlay] to install the most recent current nightly version of Neovim.
Have a look at the [https://github.com/nix-community/neovim-nightly-overlay Neovim Nightly Overlay] to install the most recent current nightly version of Neovim.


You can run the master version via the following command:
You can run the master version via the following command:
Line 90: Line 90:
  nix run "github:nix-community/neovim-nightly-overlay"
  nix run "github:nix-community/neovim-nightly-overlay"


==== What if I don't want to configure it myself? ====
==== Pre-Configured Configurations ====
If you prefer not to configure your system manually, NixOS offers several predefined configurations and community-supported options. Here are a few of them:  
If you prefer not to configure your system manually, NixOS offers several predefined configurations and community-supported options. Here are a few of them:  


Line 96: Line 96:
* [https://astronvim.com/ AstroVim]
* [https://astronvim.com/ AstroVim]
* [https://nvchad.com/ NVChad]
* [https://nvchad.com/ NVChad]
* [https://wiki.nixos.org/wiki/LunarVim LunarVim]
Another excellent option is [https://www.lunarvim.org/docs/installation LunarVim]. The development community describes it as "an IDE layer for Neovim with sane defaults." LunarVim includes an installer/updater for LSP modules and other features. It can be installed via the <code>lunarvim</code> package from <code>nixpkgs</code> and is started with the <code>lvim</code> command.


==== How to configure plugins? ====
The configuration for LunarVim is stored in <code>./config/lvim</code>.
 
==== Plugin Management ====
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
plugins = [
plugins = [
Line 187: Line 189:
# https://astronvim.com/
# https://astronvim.com/
# https://nvchad.com/
# https://nvchad.com/
# [[LunarVim]]
 


[[Category:Applications]]
[[Category:Applications]]


[[Category:Text Editor]]
[[Category:Text Editor]]