Compare commits

...

3 commits

Author SHA1 Message Date
09cc4e6110
fix(nvim): don't combine plugins unless standalone
All checks were successful
/ check (nvimDev) (push) Successful in 5s
/ check (nvimHeadless) (push) Successful in 3s
/ check (nvimNoBundledBins) (push) Successful in 5s
/ check (nvimNoLsp) (push) Successful in 5s
/ check (nvimNoTSGrammars) (push) Successful in 5s
/ check (treefmt) (push) Successful in 2s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 2s
/ report-size (push) Successful in 4s
Its causing errors sadly T-T
2025-01-18 12:05:51 +01:00
d2babf8808
fix(nvim): remove nixd LSP
Some checks failed
/ check (nvimDev) (push) Successful in 10s
/ check (nvimHeadless) (push) Successful in 3s
/ check (nvimNoBundledBins) (push) Successful in 7s
/ check (nvimNoLsp) (push) Successful in 8s
/ check (nvimNoTSGrammars) (push) Successful in 8s
/ check (treefmt) (push) Successful in 2s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 3s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Failing after 47s
/ build (nvim) (push) Successful in 13s
/ report-size (push) Has been skipped
It is now incompatible with Lix.
2025-01-18 11:46:01 +01:00
7963190ef1
fix(nvim): conflict with using global packages
Now it is an error to override the pkgs if global packages are being
used.
2025-01-18 11:41:26 +01:00
5 changed files with 15 additions and 33 deletions

View file

@ -2,17 +2,12 @@
{
flake.nixosModules =
let
nvim-config =
{ pkgs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
(import ../nvim {
inherit (inputs) unstable;
inherit (pkgs) system;
})
];
};
nvim-config = {
imports = [
inputs.nixvim.homeManagerModules.nixvim
../nvim
];
};
homeManagerModuleSandalone = import ../home {
inherit nvim-config;
inherit (inputs) stylix;

View file

@ -3,20 +3,19 @@
flake.overlays.nixvim = inputs.nixvim.overlays.default;
perSystem =
{ pkgs, system, ... }:
{ lib, system, ... }:
let
nixvimLib = inputs.nixvim.lib.${system};
nixvim = inputs.nixvim.legacyPackages.${system};
testNvimModule = nixvimLib.check.mkTestDerivationFromNixvimModule;
nvimModule = extraConfig: {
inherit pkgs;
extraSpecialArgs = {
inherit (inputs) unstable;
inherit system;
};
pkgs = inputs.unstable.legacyPackages.${system};
module = {
imports = [ (import ../nvim/standalone.nix { standalone = true; }) ];
config = extraConfig;
imports = [ ../nvim/standalone.nix ];
config = lib.mkMerge [
{ performance.combinePlugins.enable = true; }
extraConfig
];
};
};
moduleDev = nvimModule { };

View file

@ -1,4 +1,3 @@
{ system, unstable }:
{ lib, config, ... }:
let
cfg = config.jhome.nvim;
@ -7,9 +6,8 @@ in
imports = [ ./options.nix ];
config.programs.nixvim = lib.mkMerge [
(import ./standalone.nix { standalone = false; })
(import ./standalone.nix)
(lib.mkIf cfg.enable {
nixpkgs = lib.mkForce { pkgs = import unstable { inherit system; }; };
enable = true;
defaultEditor = lib.mkDefault true;
jhome.nvim = cfg;

View file

@ -15,7 +15,6 @@ let
# "html" # Not writing html
"jsonls"
"marksman"
"nixd"
"ruff"
"taplo"
# "texlab" # Not using it

View file

@ -1,11 +1,4 @@
{ standalone }:
{
pkgs,
system,
unstable,
lib,
...
}:
{ pkgs, ... }:
{
imports = [
./options.nix
@ -17,7 +10,6 @@
config = {
withRuby = false;
nixpkgs = lib.optionalAttrs standalone { pkgs = unstable.legacyPackages.${system}; };
globals.mapleader = " ";
# Appearance
colorschemes.gruvbox = {
@ -50,7 +42,6 @@
# Enable local configuration :h 'exrc'
exrc = true; # safe since nvim 0.9
};
performance.combinePlugins.enable = true;
extraPlugins =
let
plugins = pkgs.vimPlugins;