docs: update manpages [2/3]

This commit is contained in:
NotAShelf 2023-02-06 21:58:09 +03:00
parent 4874df92b6
commit c2b0b6a053
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
3 changed files with 44 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
pkgs,
lib ? import ../modules/lib/stdlib-extended.nix pkgs.lib,
lib ? import ../lib/stdlib-extended.nix pkgs.lib,
nmdSrc,
}: let
nmd = import nmdSrc {inherit lib pkgs;};

42
docs/home-manager.adoc Normal file
View file

@ -0,0 +1,42 @@
[[ch-hm-module]]
== Home Manager
The Home Manager module allows us to customize the different `vim` options. To use it, we first add the input flake.
[source,nix]
----
{
neovim-flake = {
url = github:notashelf/neovim-flake;
# you can override input nixpkgs
inputs.nixpkgs.follows = "nixpkgs";
};
}
----
Followed by importing the HM module.
[source,nix]
----
{
imports = [ neovim-flake.nixosModules.hm-module ];
}
----
Then we should be able to use the given module. E.g.
[source,nix]
----
{
programs.neovim-flake = {
enable = true;
settings = {
vim.viAlias = false;
vim.vimAlias = true;
vim.lsp = {
enable = true;
};
};
};
}
----

View file

@ -19,6 +19,7 @@
<xi:include href="try-it-out.xml"/>
<xi:include href="default-configs.xml"/>
<xi:include href="custom-configs.xml"/>
<xi:include href="home-manager.xml"/>
<xi:include href="languages.xml"/>
<xi:include href="plugins.xml"/>
<appendix xml:id="ch-options">