11{
22 lib ,
3- helpers ,
43 pkgs ,
54 ...
65} :
7- helpers . neovim-plugin . mkNeovimPlugin {
6+ let
7+ inherit ( lib . nixvim ) defaultNullOpts ;
8+ in
9+ lib . nixvim . neovim-plugin . mkNeovimPlugin {
810 name = "glow" ;
911 originalName = "glow.nvim" ;
1012 package = "glow-nvim" ;
1113
1214 maintainers = [ lib . maintainers . getchoo ] ;
1315
1416 settingsOptions = {
15- glow_path = helpers . defaultNullOpts . mkStr ( helpers . mkRaw "vim.fn.exepath('glow')" ) ''
17+ glow_path = defaultNullOpts . mkStr ( lib . nixvim . mkRaw "vim.fn.exepath('glow')" ) ''
1618 Path to `glow` binary.
1719
1820 If null or `""`, `glow` in your `$PATH` with be used if available.
1921
2022 Using `glowPackage` is the recommended way to make `glow` available in your `$PATH`.
2123 '' ;
2224
23- install_path = helpers . defaultNullOpts . mkStr "~/.local/bin" ''
25+ install_path = defaultNullOpts . mkStr "~/.local/bin" ''
2426 Path for installing `glow` binary if one is not found at `glow_path` or in your `$PATH`.
2527
2628 Consider using `glowPackage` instead.
2729 '' ;
2830
29- border = helpers . defaultNullOpts . mkEnumFirstDefault [
31+ border = defaultNullOpts . mkEnumFirstDefault [
3032 "shadow"
3133 "none"
3234 "double"
@@ -35,28 +37,28 @@ helpers.neovim-plugin.mkNeovimPlugin {
3537 "single"
3638 ] "Style of the floating window's border." ;
3739
38- style = helpers . defaultNullOpts . mkEnum [
40+ style = defaultNullOpts . mkEnum [
3941 "dark"
4042 "light"
41- ] ( helpers . mkRaw "vim.opt.background" ) "Glow style." ;
43+ ] ( lib . nixvim . mkRaw "vim.opt.background" ) "Glow style." ;
4244
43- pager = helpers . defaultNullOpts . mkBool false ''
45+ pager = defaultNullOpts . mkBool false ''
4446 Display output in a pager style.
4547 '' ;
4648
47- width = helpers . defaultNullOpts . mkInt 100 ''
49+ width = defaultNullOpts . mkInt 100 ''
4850 Width of the floating window.
4951 '' ;
5052
51- height = helpers . defaultNullOpts . mkInt 100 ''
53+ height = defaultNullOpts . mkInt 100 ''
5254 Height of the floating window.
5355 '' ;
5456
55- width_ratio = helpers . defaultNullOpts . mkNum 0.7 ''
57+ width_ratio = defaultNullOpts . mkNum 0.7 ''
5658 Maximum width of the floating window relative to the window size.
5759 '' ;
5860
59- height_ratio = helpers . defaultNullOpts . mkNum 0.7 ''
61+ height_ratio = defaultNullOpts . mkNum 0.7 ''
6062 Maximum height of the floating window relative to the window size.
6163 '' ;
6264 } ;
0 commit comments