[fix] nvim: system module brok plugins
The architecture of nixvim doesn't let me use NixOS modules T-T, I need to use manual imports instead.
This commit is contained in:
parent
ac5e62a37c
commit
3aea6bbc41
6 changed files with 471 additions and 489 deletions
|
@ -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";
|
||||
|
|
|
@ -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" = {};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{pkgs, ...} @ opts: {
|
||||
args: {
|
||||
imports = [./options.nix];
|
||||
|
||||
config.programs.nixvim = (import ./nixvim.nix opts).config;
|
||||
config.programs.nixvim = (import ./nixvim.nix args).config;
|
||||
}
|
||||
|
|
|
@ -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)";
|
||||
}
|
||||
];
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue