Compare commits

...

2 commits

2 changed files with 17 additions and 8 deletions

View file

@ -149,3 +149,10 @@ vim.api.nvim_set_keymap('n', '<leader>a', ':lua camelToSnake()<CR>', { noremap =
- Added [`vim.extraPackages`](vim.extraPackages) for appending additional packages to the wrapper PATH, making said packages available - Added [`vim.extraPackages`](vim.extraPackages) for appending additional packages to the wrapper PATH, making said packages available
while inside the Neovim session. while inside the Neovim session.
- Made treesitter options configurable, and moved `treesitter-context to
`setupOpts` while it is enabled.
- Added `vim.notify.nvim-notify.setupOpts.render` which takes either a string of enum or
a lua function. The default is "compact", but you may change it according to
nvim-notify documentation.

View file

@ -1,12 +1,8 @@
{ {lib, ...}: let
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption; inherit (lib.options) mkEnableOption mkOption;
inherit (lib.modules) mkRenamedOptionModule; inherit (lib.modules) mkRenamedOptionModule;
inherit (lib.types) int str enum attrsOf; inherit (lib.types) int str enum attrsOf either;
inherit (lib.nvim.types) mkPluginSetupOption; inherit (lib.nvim.types) mkPluginSetupOption luaInline;
in { in {
imports = let imports = let
renamedSetupOpt = name: renamedSetupOpt = name:
@ -25,6 +21,12 @@ in {
enable = mkEnableOption "nvim-notify notifications"; enable = mkEnableOption "nvim-notify notifications";
setupOpts = mkPluginSetupOption "nvim-notify" { setupOpts = mkPluginSetupOption "nvim-notify" {
render = mkOption {
type = either (enum ["default" "minimal" "simple" "compact" "wrapped-compact"]) luaInline;
default = "compact";
description = "Custom rendering method to be used for displaying notifications";
};
stages = mkOption { stages = mkOption {
type = enum ["fade_in_slide_out" "fade_in" "slide_out" "none"]; type = enum ["fade_in_slide_out" "fade_in" "slide_out" "none"];
default = "fade_in_slide_out"; default = "fade_in_slide_out";
@ -57,7 +59,7 @@ in {
WARN = ""; WARN = "";
INFO = ""; INFO = "";
DEBUG = ""; DEBUG = "";
TRACE = ""; TRACE = "";
}; };
}; };
}; };