mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-10 13:29:49 +01:00
Compare commits
No commits in common. "ebe0d6c9603f4b48943fadb0da1e3f5b68cdce7c" and "bba0ba92a6112f74d21a634860846c7a6356b1c6" have entirely different histories.
ebe0d6c960
...
bba0ba92a6
2 changed files with 8 additions and 17 deletions
|
@ -149,10 +149,3 @@ 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.
|
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
{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 either;
|
inherit (lib.types) int str enum attrsOf;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
in {
|
in {
|
||||||
imports = let
|
imports = let
|
||||||
renamedSetupOpt = name:
|
renamedSetupOpt = name:
|
||||||
|
@ -21,12 +25,6 @@ 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";
|
||||||
|
@ -59,7 +57,7 @@ in {
|
||||||
WARN = "";
|
WARN = "";
|
||||||
INFO = "";
|
INFO = "";
|
||||||
DEBUG = "";
|
DEBUG = "";
|
||||||
TRACE = "";
|
TRACE = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue