mirror of
https://github.com/cap153/nvim.git
synced 2026-07-16 22:16:54 +08:00
适配wsl环境
This commit is contained in:
parent
ca576a6090
commit
fea05914e5
3 changed files with 43 additions and 13 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue