diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-10-06 14:52:39 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-10-06 14:52:39 +0200 |
| commit | d1c95fdd445180ea9342a8ce326912e5c366042f (patch) | |
| tree | 45896e0c177a05a2d5118c1ed12f17fff56bc315 /common/home/programs/nixvim/plugins | |
| parent | 126c42d734f4bff4583a8c7ae738908de6b680ad (diff) | |
nixvim: add typst-preview
Diffstat (limited to 'common/home/programs/nixvim/plugins')
| -rw-r--r-- | common/home/programs/nixvim/plugins/default.nix | 31 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/typst-preview.nix | 7 |
2 files changed, 23 insertions, 15 deletions
diff --git a/common/home/programs/nixvim/plugins/default.nix b/common/home/programs/nixvim/plugins/default.nix index 4898ff6..b9f40a9 100644 --- a/common/home/programs/nixvim/plugins/default.nix +++ b/common/home/programs/nixvim/plugins/default.nix @@ -1,20 +1,21 @@ { pkgs, ... }: let - plugins = [ - "web-devicons" - "nvim-tree" - "telescope" - "lualine" - "treesitter" - ]; +plugins = [ + "web-devicons" + "nvim-tree" + "telescope" + "lualine" + "treesitter" + "typst-preview" +]; in builtins.listToAttrs ( - map (n: { - name = n; - value = - if builtins.pathExists ./${n}.nix then - (import ./${n}.nix { inherit pkgs; }) - else - { enable = true; }; - }) plugins + map (n: { + name = n; + value = + if builtins.pathExists ./${n}.nix then + (import ./${n}.nix { inherit pkgs; }) + else + { enable = true; }; + }) plugins ) diff --git a/common/home/programs/nixvim/plugins/typst-preview.nix b/common/home/programs/nixvim/plugins/typst-preview.nix new file mode 100644 index 0000000..7753cc0 --- /dev/null +++ b/common/home/programs/nixvim/plugins/typst-preview.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: +{ + enable = true; + settings = { + open_cmd = "firefox %s -P typst-preview --class typst-preview"; + }; +} |