mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-23 12:02:00 +00:00
visuals/blink-indent: init plugin
This commit is contained in:
parent
b980b5b3fb
commit
0f7764b83b
7 changed files with 53 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ isMaximal: {
|
||||||
fidget-nvim.enable = true;
|
fidget-nvim.enable = true;
|
||||||
|
|
||||||
highlight-undo.enable = true;
|
highlight-undo.enable = true;
|
||||||
|
blink-indent.enable = true;
|
||||||
indent-blankline.enable = true;
|
indent-blankline.enable = true;
|
||||||
|
|
||||||
# Fun
|
# Fun
|
||||||
|
|
|
||||||
|
|
@ -232,6 +232,8 @@ https://github.com/gorbit99/codewindow.nvim
|
||||||
- Added [`grug-far.nvim`](https://github.com/MagicDuck/grug-far.nvim) the find
|
- Added [`grug-far.nvim`](https://github.com/MagicDuck/grug-far.nvim) the find
|
||||||
and replace tool for neovim.
|
and replace tool for neovim.
|
||||||
- Fix lsp `client.supports_method` deprecation warning in nvim v0.12.
|
- Fix lsp `client.supports_method` deprecation warning in nvim v0.12.
|
||||||
|
- Add [`blink.indent`](https://github.com/saghen/blink.indent) indent guidline
|
||||||
|
plugin.
|
||||||
|
|
||||||
[Ladas552](https://github.com/Ladas552)
|
[Ladas552](https://github.com/Ladas552)
|
||||||
|
|
||||||
|
|
|
||||||
9
modules/plugins/visuals/blink-indent/blink-indent.nix
Normal file
9
modules/plugins/visuals/blink-indent/blink-indent.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{lib, ...}: let
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.visuals.blink-indent = {
|
||||||
|
enable = mkEnableOption "indentation guides [blink-indent]";
|
||||||
|
setupOpts = mkPluginSetupOption "blink-indent" {};
|
||||||
|
};
|
||||||
|
}
|
||||||
21
modules/plugins/visuals/blink-indent/config.nix
Normal file
21
modules/plugins/visuals/blink-indent/config.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
|
||||||
|
cfg = config.vim.visuals.blink-indent;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim = {
|
||||||
|
startPlugins = ["blink-indent"];
|
||||||
|
|
||||||
|
pluginRC.blink-indent = entryAnywhere ''
|
||||||
|
require("blink.indent").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/plugins/visuals/blink-indent/default.nix
Normal file
6
modules/plugins/visuals/blink-indent/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./config.nix
|
||||||
|
./blink-indent.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -7,6 +7,7 @@ in {
|
||||||
toggles under individual options.
|
toggles under individual options.
|
||||||
'')
|
'')
|
||||||
|
|
||||||
|
./blink-indent
|
||||||
./cellular-automaton
|
./cellular-automaton
|
||||||
./cinnamon-nvim
|
./cinnamon-nvim
|
||||||
./fidget-nvim
|
./fidget-nvim
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,19 @@
|
||||||
"url": "https://github.com/moyiz/blink-emoji.nvim/archive/f22ce8cac02a6ece05368220f1e38bd34fe376f9.tar.gz",
|
"url": "https://github.com/moyiz/blink-emoji.nvim/archive/f22ce8cac02a6ece05368220f1e38bd34fe376f9.tar.gz",
|
||||||
"hash": "sha256-pPHESNsByHg2liNUYkUEVR1wP1MZcil1sKTqrNI53e4="
|
"hash": "sha256-pPHESNsByHg2liNUYkUEVR1wP1MZcil1sKTqrNI53e4="
|
||||||
},
|
},
|
||||||
|
"blink-indent": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "GitHub",
|
||||||
|
"owner": "saghen",
|
||||||
|
"repo": "blink.indent"
|
||||||
|
},
|
||||||
|
"branch": "main",
|
||||||
|
"submodules": false,
|
||||||
|
"revision": "9c80820ca77218a8d28e70075d6f44a1609911fe",
|
||||||
|
"url": "https://github.com/saghen/blink.indent/archive/9c80820ca77218a8d28e70075d6f44a1609911fe.tar.gz",
|
||||||
|
"hash": "sha256-SS66JZFCX8viYxYaObASlwtrG5h7yHbVvRBVXBNXkng="
|
||||||
|
},
|
||||||
"blink-ripgrep-nvim": {
|
"blink-ripgrep-nvim": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue