mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
Merge remote-tracking branch 'origin/main' into v0.8
This commit is contained in:
commit
e1ad7f4fb9
49 changed files with 1338 additions and 727 deletions
|
@ -15,6 +15,7 @@
|
|||
./multicursors
|
||||
./new-file-template
|
||||
./nix-develop
|
||||
./nvim-biscuits
|
||||
./oil-nvim
|
||||
./outline
|
||||
./preview
|
||||
|
@ -27,5 +28,6 @@
|
|||
./wakatime
|
||||
./yanky-nvim
|
||||
./yazi-nvim
|
||||
./undotree
|
||||
];
|
||||
}
|
||||
|
|
20
modules/plugins/utility/nvim-biscuits/config.nix
Normal file
20
modules/plugins/utility/nvim-biscuits/config.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
cfg = config.vim.utility.nvim-biscuits;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = ["nvim-biscuits"];
|
||||
|
||||
pluginRC.nvim-biscuits = entryAnywhere ''
|
||||
require('nvim-biscuits').setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
6
modules/plugins/utility/nvim-biscuits/default.nix
Normal file
6
modules/plugins/utility/nvim-biscuits/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./nvim-biscuits.nix
|
||||
];
|
||||
}
|
10
modules/plugins/utility/nvim-biscuits/nvim-biscuits.nix
Normal file
10
modules/plugins/utility/nvim-biscuits/nvim-biscuits.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.utility.nvim-biscuits = {
|
||||
enable = mkEnableOption "a Neovim port of Assorted Biscuits [nvim-biscuits]";
|
||||
|
||||
setupOpts = mkPluginSetupOption "nvim-biscuits" {};
|
||||
};
|
||||
}
|
22
modules/plugins/utility/undotree/config.nix
Normal file
22
modules/plugins/utility/undotree/config.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.vim.utility.undotree;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim.lazy.plugins.undotree = {
|
||||
package = "undotree";
|
||||
cmd = [
|
||||
"UndotreeToggle"
|
||||
"UndotreeShow"
|
||||
"UndotreeHide"
|
||||
"UndotreePersistUndo"
|
||||
"UndotreeFocus"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
6
modules/plugins/utility/undotree/default.nix
Normal file
6
modules/plugins/utility/undotree/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./undotree.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
7
modules/plugins/utility/undotree/undotree.nix
Normal file
7
modules/plugins/utility/undotree/undotree.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.vim.utility.undotree = {
|
||||
enable = mkEnableOption "undo history visualizer for Vim [undotree]";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue