[fix] nvim: system module broke plugins #10

Merged
jalil merged 1 commit from fix-nvim into main 2024-06-23 14:31:00 +02:00
6 changed files with 480 additions and 489 deletions
Showing only changes of commit ac30838621 - Show all commits

View file

@ -250,8 +250,8 @@
system,
}: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
just
buildInputs = [
pkgs.just
self.packages.${system}.nvim
];
QEMU_OPTS_WL = "--enable-kvm -smp 4 -device virtio-gpu-rutabaga,gfxstream-vulkan=on,cross-domain=on,hostmem=2G,wsi=headless";

View file

@ -1,13 +1,6 @@
{
lib,
config,
helpers,
...
}: let
{helpers, ...}: let
inherit (helpers) mkRaw;
cfg = config.jhome.nvim;
in
lib.mkIf cfg.enable {
in {
autoGroups = {
"highlightOnYank" = {};
"lspConfig" = {};

View file

@ -1,5 +1,14 @@
{pkgs, ...} @ opts: {
{
lib,
pkgs,
config,
helpers,
...
}: let
# Force inputs to be included
nixvim = import ./nixvim.nix {inherit lib pkgs config helpers;};
in {
imports = [./options.nix];
config.programs.nixvim = (import ./nixvim.nix opts).config;
config.programs.nixvim = nixvim.config;
}

View file

@ -1,15 +1,6 @@
{
lib,
config,
helpers,
...
}: let
{helpers, ...}: let
inherit (helpers) mkRaw;
cfg = config.jhome.nvim;
in
lib.mkIf cfg.enable {
keymaps = [
in [
# Quickfix
{
mode = "n";
@ -154,5 +145,4 @@ in
action = mkRaw "require('nvim-silicon').clip";
options.desc = "Snap Code (to clipboard)";
}
];
}
]

View file

@ -10,14 +10,18 @@
darwinAvailable = args ? darwinConfig;
canSetAsDefault = hmAvailable || nixosAvailable;
notStandalone = hmAvailable || nixosAvailable || darwinAvailable;
augroups = import ./augroups.nix args;
in {
imports = [./options.nix ./plugins.nix ./mappings.nix ./augroups.nix];
imports = [./options.nix];
config = lib.mkMerge [
(lib.optionalAttrs canSetAsDefault {defaultEditor = lib.mkDefault true;})
(lib.optionalAttrs notStandalone {enable = lib.mkDefault true;})
(lib.mkIf cfg.enable {
package = pkgs.unstable.neovim-unwrapped;
inherit (augroups) autoGroups autoCmd;
plugins = import ./plugins.nix args;
keymaps = import ./mappings.nix args;
globals.mapleader = " ";
# Appearance
colorschemes.gruvbox = {

View file

@ -2,14 +2,10 @@
lib,
pkgs,
helpers,
config,
...
}: let
inherit (helpers) mkRaw;
cfg = config.jhome.nvim;
in
lib.mkIf cfg.enable {
plugins = {
in {
bacon = {
enable = true;
settings.quickfix.enabled = true;
@ -243,5 +239,4 @@ in
enable = true;
settings.auto_close = true;
};
};
}