适配wsl环境

This commit is contained in:
caprain 2026-05-03 21:21:16 +08:00
parent ca576a6090
commit fea05914e5
3 changed files with 43 additions and 13 deletions

View file

@ -18,6 +18,9 @@ vim.api.nvim_create_user_command("PeekToggle", function()
app = { "chromium", "--no-sandbox", "--app=http://localhost:9000/?theme=dark", "--incognito", "--test-type",
"--force-device-scale-factor=1.75" }
end
if vim.fn.has("wsl") == 1 then
app = { "/mnt/d/my_program/chrome-win/chrome.exe", "--no-sandbox", "--app=http://localhost:9000/?theme=dark", "--incognito", "--test-type" }
end
require("peek").setup({
port = 9000,
-- app = { "zen", "-private-window" },