From 1293b751db6333e368f30652328aeec43b06be12 Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 25 Aug 2023 22:34:40 +0200 Subject: Fix(hm/conf/neovim/plugins): Move raw plugins to their config dirs --- .../config/neovim/nixvim/plugins/colorscheme/default.nix | 9 ++++++++- .../config/neovim/nixvim/plugins/lf-nvim/default.nix | 12 +++++++++++- .../config/neovim/nixvim/plugins/nvim-lint/default.nix | 9 ++++++++- .../config/neovim/nixvim/plugins/raw_plugins/default.nix | 13 ++++--------- 4 files changed, 31 insertions(+), 12 deletions(-) (limited to 'home-manager/soispha/config/neovim/nixvim/plugins') diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/colorscheme/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/colorscheme/default.nix index 9864c5cf..db8fde1c 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/colorscheme/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/plugins/colorscheme/default.nix @@ -1,9 +1,16 @@ -{lib, ...}: { +{ + pkgs, + lib, + ... +}: { programs.nixvim = { # TODO package nightfox though a module extraConfigLuaPost = '' ${lib.strings.fileContents ./lua/nightfox.lua} ''; colorscheme = "duskfox"; + extraPlugins = [ + pkgs.vimExtraPlugins.nightfox-nvim + ]; }; } diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lf-nvim/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lf-nvim/default.nix index a42c6f33..37686779 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/lf-nvim/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/plugins/lf-nvim/default.nix @@ -1,8 +1,18 @@ -{lib, ...}: { +{ + pkgs, + lib, + ... +}: { programs.nixvim = { # TODO package lf-nvim though a module + # FIXME change the nvim path, when I change the path with lf extraConfigLuaPost = '' ${lib.strings.fileContents ./lua/lf-nvim.lua} ''; + extraPlugins = [ + pkgs.vimExtraPlugins.lf-nvim + + pkgs.vimExtraPlugins.nvim-toggleterm-lua # required by lf-nvim + ]; }; } diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/default.nix index c55efacc..60f7b715 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/plugins/nvim-lint/default.nix @@ -1,8 +1,15 @@ -{lib, ...}: { +{ + pkgs, + lib, + ... +}: { programs.nixvim = { # TODO package nvim-lint though a module extraConfigLuaPost = '' ${lib.strings.fileContents ./lua/nvim-lint.lua} ''; + extraPlugins = [ + pkgs.vimExtraPlugins.nvim-lint + ]; }; } diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix index 28944ff9..941cb7cb 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix @@ -1,16 +1,11 @@ -{pkgs, ...}: { +{...}: { programs.nixvim = { # Not all plugins have own modules # You can add missing plugins here # `pkgs.vimExtraPlugins` is added by the overlay you added at the beginning - # For a list of available plugins, look here: [available plugins](https://github.com/jooooscha/nixpkgs-vim-extra-plugins/blob/main/plugins.md) - extraPlugins = with pkgs.vimExtraPlugins; [ - nightfox-nvim - nvim-lint - lf-nvim - gruvbox - - nvim-toggleterm-lua # required by lf-nvim + # For a list of available plugins, look here: + # https://github.com/jooooscha/nixpkgs-vim-extra-plugins/blob/main/plugins.md + extraPlugins = [ ]; }; } -- cgit 1.4.1