mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-13 16:18:36 +00:00
ui/dressing: init
This commit is contained in:
parent
585dfca7ca
commit
203d68071f
5 changed files with 50 additions and 0 deletions
|
@ -303,6 +303,7 @@
|
|||
- Disable mini.indentscope for applicable filetypes.
|
||||
- Fix fzf-lua having a hard dependency on fzf.
|
||||
- Enable inlay hints support - `config.vim.lsp.inlayHints`.
|
||||
- Add [dressing.nvim](https://github.com/stevearc/dressing.nvim) to ui module.
|
||||
|
||||
[tebuevd](https://github.com/tebuevd):
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
./notifications
|
||||
./smartcolumn
|
||||
./colorizer
|
||||
./dressing
|
||||
./illuminate
|
||||
./breadcrumbs
|
||||
./borders
|
||||
|
|
21
modules/plugins/ui/dressing/config.nix
Normal file
21
modules/plugins/ui/dressing/config.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.vim.ui.dressing;
|
||||
in {
|
||||
vim = {
|
||||
fzf-lua = mkIf (builtins.elem "fzf_lua" cfg.setupOpts.select.backend) {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
lazy.plugins."dressing-nvim" = mkIf cfg.enable {
|
||||
package = "dressing-nvim";
|
||||
setupModule = "dressing";
|
||||
inherit (cfg) setupOpts;
|
||||
};
|
||||
};
|
||||
}
|
6
modules/plugins/ui/dressing/default.nix
Normal file
6
modules/plugins/ui/dressing/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./dressing.nix
|
||||
];
|
||||
}
|
21
modules/plugins/ui/dressing/dressing.nix
Normal file
21
modules/plugins/ui/dressing/dressing.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
inherit (lib.options) literalMD mkEnableOption mkOption;
|
||||
inherit (lib.types) listOf str;
|
||||
in {
|
||||
options.vim.ui.dressing = {
|
||||
enable = mkEnableOption "auto-save";
|
||||
setupOpts = mkPluginSetupOption "dressing" {
|
||||
select = {
|
||||
backend = mkOption {
|
||||
type = listOf str;
|
||||
default = ["fzf_lua"];
|
||||
description = literalMD ''
|
||||
Priority list of preferred `vim.select` implementations.
|
||||
Note: Using the default value(`["fzf_lua"]`) will also enable `fzf-lua`.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue