diff --git a/home-manager/nixvim/config.nix b/home-manager/nixvim/config.nix index ed7e517..c9f4730 100644 --- a/home-manager/nixvim/config.nix +++ b/home-manager/nixvim/config.nix @@ -38,6 +38,11 @@ action = "NvimTreeToggle"; options.desc = "Toggle NvimTree"; } + { + key = "p"; + action = "PasteImg"; + options.desc = "Pastes an Image from the clipboard"; + } # File #{ diff --git a/home-manager/nixvim/images.nix b/home-manager/nixvim/images.nix index 5c6ac51..ad3857c 100644 --- a/home-manager/nixvim/images.nix +++ b/home-manager/nixvim/images.nix @@ -6,6 +6,11 @@ # todo change based on graphical settings clipboardPackage = pkgs.wl-clipboard; enable = true; + filetypes = { + typst = { + affix = ''#image("%s")''; + }; + }; }; }; }