mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
fix options in standalone usage
This commit is contained in:
parent
4ddd3969e5
commit
6d265c5f15
3 changed files with 62 additions and 5 deletions
|
@ -40,7 +40,7 @@
|
||||||
configuration:
|
configuration:
|
||||||
let
|
let
|
||||||
eval = evalModules {
|
eval = evalModules {
|
||||||
modules = modules pkgs ++ [ configuration ];
|
modules = modules pkgs ++ [{ config = configuration; }];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
eval.config.output;
|
eval.config.output;
|
||||||
|
@ -76,7 +76,6 @@
|
||||||
in
|
in
|
||||||
flakeOutput // {
|
flakeOutput // {
|
||||||
inherit build;
|
inherit build;
|
||||||
# TODO: Stuff for home-manager and nixos modules backwards compat, keeping the architecture as x86_64 if none is specified...
|
|
||||||
homeManagerModules.nixvim = flakeOutput.homeManagerModules.x86_64-linux.nixvim;
|
homeManagerModules.nixvim = flakeOutput.homeManagerModules.x86_64-linux.nixvim;
|
||||||
nixosModules.nixvim = flakeOutput.nixosModules.x86_64-linux.nixvim;
|
nixosModules.nixvim = flakeOutput.nixosModules.x86_64-linux.nixvim;
|
||||||
};
|
};
|
||||||
|
|
6
tests/flake.lock
generated
6
tests/flake.lock
generated
|
@ -66,12 +66,12 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 0,
|
"lastModified": 0,
|
||||||
"narHash": "sha256-TGzzj1r1lqxquirvC3yzhuh2fYamEjWIrKG1RMtwsSA=",
|
"narHash": "sha256-KhmkkdmESupzYbpjQn09UE96/SuVcdzrKTt8R1FQymA=",
|
||||||
"path": "/nix/store/pql62xd29lxl70icdqc97qiarqkalwga-source",
|
"path": "/nix/store/l2s5vhqf3w74203w3a0ydvpg5vw1kvvl-source",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/pql62xd29lxl70icdqc97qiarqkalwga-source",
|
"path": "/nix/store/l2s5vhqf3w74203w3a0ydvpg5vw1kvvl-source",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -44,6 +44,64 @@
|
||||||
nixGrammars = false;
|
nixGrammars = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
issue-40 = build {
|
||||||
|
plugins = {
|
||||||
|
nix.enable = true;
|
||||||
|
nvim-autopairs.enable = true;
|
||||||
|
|
||||||
|
lualine = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
sectionSeparators = {
|
||||||
|
left = "";
|
||||||
|
right = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
componentSeparators = {
|
||||||
|
left = "";
|
||||||
|
right = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
theme = "auto";
|
||||||
|
};
|
||||||
|
|
||||||
|
goyo = {
|
||||||
|
enable = true;
|
||||||
|
showLineNumbers = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
servers = {
|
||||||
|
rust-analyzer.enable = true;
|
||||||
|
rnix-lsp.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
options = {
|
||||||
|
# Indentation
|
||||||
|
autoindent = true;
|
||||||
|
tabstop = 4;
|
||||||
|
shiftwidth = 4;
|
||||||
|
expandtab = true;
|
||||||
|
backspace = "indent,eol,start";
|
||||||
|
|
||||||
|
# Text
|
||||||
|
showmatch = true;
|
||||||
|
mouse = "a";
|
||||||
|
number = true;
|
||||||
|
relativenumber = false;
|
||||||
|
ttyfast = true;
|
||||||
|
clipboard = "unnamedplus";
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
background = "dark";
|
||||||
|
termguicolors = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
})) // {
|
})) // {
|
||||||
nixosConfigurations.nixvim-machine = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixvim-machine = nixpkgs.lib.nixosSystem {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue