mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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:
|
||||
let
|
||||
eval = evalModules {
|
||||
modules = modules pkgs ++ [ configuration ];
|
||||
modules = modules pkgs ++ [{ config = configuration; }];
|
||||
};
|
||||
in
|
||||
eval.config.output;
|
||||
|
@ -76,7 +76,6 @@
|
|||
in
|
||||
flakeOutput // {
|
||||
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;
|
||||
nixosModules.nixvim = flakeOutput.nixosModules.x86_64-linux.nixvim;
|
||||
};
|
||||
|
|
6
tests/flake.lock
generated
6
tests/flake.lock
generated
|
@ -66,12 +66,12 @@
|
|||
},
|
||||
"locked": {
|
||||
"lastModified": 0,
|
||||
"narHash": "sha256-TGzzj1r1lqxquirvC3yzhuh2fYamEjWIrKG1RMtwsSA=",
|
||||
"path": "/nix/store/pql62xd29lxl70icdqc97qiarqkalwga-source",
|
||||
"narHash": "sha256-KhmkkdmESupzYbpjQn09UE96/SuVcdzrKTt8R1FQymA=",
|
||||
"path": "/nix/store/l2s5vhqf3w74203w3a0ydvpg5vw1kvvl-source",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "/nix/store/pql62xd29lxl70icdqc97qiarqkalwga-source",
|
||||
"path": "/nix/store/l2s5vhqf3w74203w3a0ydvpg5vw1kvvl-source",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -44,6 +44,64 @@
|
|||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue