Skip to content

Commit cf7b87c

Browse files
authored
Merge pull request #1342 from pyrox0/feat/hlargs-nvim
visuals/hlargs-nvim: init plugin
2 parents efad785 + 41be0b5 commit cf7b87c

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

docs/manual/release-notes/rl-0.9.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
[Tombi](https://tombi-toml.github.io/tombi/) language server, linter, and
139139
formatter.
140140
141+
- Added [hlargs.nvim](https://github.com/m-demare/hlargs.nvim) support as
142+
`visuals.hlargs-nvim`.
143+
141144
[Machshev](https://github.com/machshev):
142145
143146
- Added `ruff` and `ty` LSP support for Python under `programs.python`.

modules/plugins/visuals/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ in {
1111
./cinnamon-nvim
1212
./fidget-nvim
1313
./highlight-undo
14+
./hlargs-nvim
1415
./indent-blankline
1516
./nvim-cursorline
1617
./nvim-scrollbar
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
config,
3+
lib,
4+
...
5+
}: let
6+
inherit (lib.modules) mkIf;
7+
inherit (lib.nvim.dag) entryAnywhere;
8+
inherit (lib.nvim.lua) toLuaObject;
9+
cfg = config.vim.visuals.hlargs-nvim;
10+
in {
11+
vim = mkIf cfg.enable {
12+
startPlugins = ["hlargs-nvim"];
13+
14+
pluginRC.hlargs-nvim = entryAnywhere ''
15+
require('hlargs').setup(${toLuaObject cfg.setupOpts})
16+
'';
17+
};
18+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
imports = [
3+
./hlargs-nvim.nix
4+
./config.nix
5+
];
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{lib, ...}: let
2+
inherit (lib.options) mkEnableOption;
3+
inherit (lib.nvim.types) mkPluginSetupOption;
4+
in {
5+
options.vim.visuals.hlargs-nvim = {
6+
enable = mkEnableOption "hlargs-nvim";
7+
setupOpts = mkPluginSetupOption "hlargs-nvim" {};
8+
};
9+
}

npins/sources.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,19 @@
708708
"url": "https://github.com/tzachar/highlight-undo.nvim/archive/ee32e12693d70e66f954d09a504a7371d110fc27.tar.gz",
709709
"hash": "sha256-yU4i3uPI7qghxdevOuqzxu8gIol6pxgd7TIY6vnyfiU="
710710
},
711+
"hlargs-nvim": {
712+
"type": "Git",
713+
"repository": {
714+
"type": "GitHub",
715+
"owner": "m-demare",
716+
"repo": "hlargs.nvim"
717+
},
718+
"branch": "main",
719+
"submodules": false,
720+
"revision": "0b29317c944fb1f76503ce4540d6dceffbb5ccd2",
721+
"url": "https://github.com/m-demare/hlargs.nvim/archive/0b29317c944fb1f76503ce4540d6dceffbb5ccd2.tar.gz",
722+
"hash": "sha256-WjmVefR0qk2ANWgyHSuYMTuCfzlVTF7tqzAL+uatKkc="
723+
},
711724
"hop.nvim": {
712725
"type": "GitRelease",
713726
"repository": {

0 commit comments

Comments
 (0)