diff --git a/common/nvim/init.lua b/common/nvim/init.lua index c24ecbf..eb4f086 100644 --- a/common/nvim/init.lua +++ b/common/nvim/init.lua @@ -186,7 +186,14 @@ require('lazy').setup({ lazy = false, -- or ft = 'typst' version = '1.*', opts = { + debug = true, open_cmd = 'firefox %s', + + dependencies_bin = { + ['tinymist'] = "@tinymist@", + ['websocat'] = "@websocat@", + }, + port = 28282, }, -- lazy.nvim will implicitly calls `setup {}` }, diff --git a/common/nvim/nvim.nix b/common/nvim/nvim.nix index f3e677b..72608c0 100644 --- a/common/nvim/nvim.nix +++ b/common/nvim/nvim.nix @@ -28,7 +28,11 @@ viAlias = true; vimAlias = true; - extraLuaConfig = lib.fileContents ./init.lua; + extraLuaConfig = + builtins.replaceStrings + [ "@websocat@" "@tinymist@" ] + [ "${pkgs.websocat}/bin/websocat" "${pkgs.tinymist}/bin/tinymist" ] + (lib.fileContents ./init.lua); }; }; }