Cannot paste text to enter cookie
I select Sign in (By Cookie) which takes me to the Enter cookie prompt. I then go to my browser and find the cookie from the graphql requests. I copy it to my clipboard. Then, when I move back to neovim to paste in the text, it simply enters nothing. I have tried ctrl-shift-v (this is what i usually use with neovim, and works fine everywhere else), shift-insert and the neovim command "*. None of these are working for pasting text into the prompt. I am on neovim 0.9.5 and have the latest version of leetcode.nvim installed.
Have you tried pasting and pressing enter? Sometimes the prompt behaves weirdly and doesn't show that the text is pasted yet it's there
Have you tried pasting and pressing enter? Sometimes the prompt behaves weirdly and doesn't show that the text is pasted yet it's there
Yes.
Then you can try creating the cookie file manually. Create a file named cookie (cookie_cn for chinese version) inside vim.fn.stdpath("cache") + "leetcode" and paste it there
Same problem with me.
Expected Lua number
stack traceback:
^I[C]: in function 'nvim_win_is_valid'
^I...k/.local/share/nvim/lazy/nui.nvim/lua/nui/input/init.lua:134: in function 'unmount'
^I...k/.local/share/nvim/lazy/nui.nvim/lua/nui/input/init.lua:111: in function <...k/.local/share/nvim/lazy/nui.nvim/lua/nui/input/init.lua:109>
I tried creating the cookie file at that file, now show notification "http error 499"
@Deshdeepak1 what is your nvim version?
Until https://github.com/MunifTanjim/nui.nvim/pull/362 is not merged, creating the cookie file manually should work now without any errors now.
@Deshdeepak1 what is your nvim version?
0.9.5
creating the cookie file manually should work
it gives "http error 499"
creating the cookie file manually should work
it gives "http error 499"
After updating? Make sure you are using graphql requests
Okay, I updated leetcode.nvim , and it works now. Thanks.
Then you can try creating the cookie file manually. Create a file named
cookieinsidevim.fn.stdpath("cache") + "leetcode"and paste it there
Just a little addition, if you use leetcode.cn, then the file should be cookie_cn.
You also need to manually trim out \n from tokens since nui input popup seems not working well with multiple lines.
just in case you are a newbie like me and don't know how to use vim.fn.stdpath("cache") + "leetcode", the full lua code looks like this :lua print(vim.fn.stdpath("cache") .. "/leetcode")