mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
docs: clarify nixos and home-manager usage
This commit is contained in:
parent
7ee66ea376
commit
f7e860d6e5
2 changed files with 10 additions and 3 deletions
|
@ -18,7 +18,10 @@ The following is an example of a barebones vim configuration with the default th
|
||||||
[source,nix]
|
[source,nix]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
inputs.neovim-flake.url = "github:jordanisaacs/neovim-flake";
|
inputs.neovim-flake = {
|
||||||
|
url = "github:notashelf/neovim-flake";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = {nixpkgs, neovim-flake, ...}: let
|
outputs = {nixpkgs, neovim-flake, ...}: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
@ -27,7 +30,9 @@ The following is an example of a barebones vim configuration with the default th
|
||||||
# Add any custom options (and feel free to upstream them!)
|
# Add any custom options (and feel free to upstream them!)
|
||||||
# options = ...
|
# options = ...
|
||||||
|
|
||||||
config.vim.theme.enable = true;
|
config.vim = {
|
||||||
|
theme.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
customNeovim = neovim-flake.lib.neovimConfiguration {
|
customNeovim = neovim-flake.lib.neovimConfiguration {
|
||||||
|
|
|
@ -19,7 +19,7 @@ Followed by importing the HM module.
|
||||||
[source,nix]
|
[source,nix]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
imports = [ neovim-flake.nixosModules.default ];
|
imports = [ neovim-flake.homeManagerModules.default ];
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -29,7 +29,9 @@ Then we should be able to use the given module. E.g.
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
programs.neovim-flake = {
|
programs.neovim-flake = {
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# your settings need to go into the settings attrset
|
||||||
settings = {
|
settings = {
|
||||||
vim.viAlias = false;
|
vim.viAlias = false;
|
||||||
vim.vimAlias = true;
|
vim.vimAlias = true;
|
||||||
|
|
Loading…
Reference in a new issue