peek.nvim
peek.nvim copied to clipboard
deno shutdown immediately when using webview
Describe the bug
When run task with --app='"webview"'
the deno process shutdown immediately without any error. The logs is not print out any useful information:
INFO 526668 05/05/2024, 15:59:00.024 DENO_ENV: undefined --logfile=/home/hieulw/.local/state/nvim/peek.log --theme=dark --app="webview"
INFO 526668 05/05/2024, 15:59:00.034 deno: 1.43.1 v8: 12.4.254.12 typescript: 5.4.3
INFO 526668 05/05/2024, 15:59:00.035 listening on localhost:33719
INFO 526668 05/05/2024, 15:59:00.066 webview closed, code: 1
To Reproduce
https://github.com/toppair/peek.nvim/assets/13571960/adec0860-938d-4ebc-b741-34e2f63cd02f
Expected behavior Expect peek to works with webview like it works with browser mode
Desktop (please complete the following information):
- OS: Arch Linux
-
nvim --version
:
NVIM v0.10.0-dev-3079+ge948d7feba
Build type: RelWithDebInfo
LuaJIT 2.1.1713773202
-
deno --version
:
deno 1.43.1 (release, x86_64-unknown-linux-gnu)
v8 12.4.254.12
typescript 5.4.3
- plugin setup:
{
"toppair/peek.nvim",
build = "deno task --quiet build:fast",
event = "LazyFile",
opts = {
auto_load = true,
close_on_bdelete = true,
syntax = true,
theme = "dark",
update_on_change = true,
app = "webview",
filetype = { "markdown" },
throttle_at = 200000,
throttle_time = "auto",
},
config = function(_, opts)
require("peek").setup(opts)
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
end,
}
Additional context I'm using wayland, don't know if this related.