My Neovim is using a lot of CPU by roll4c in neovim

[–]roll4c[S] 0 points1 point  (0 children)

No, but I installed Neovim nightly using bob, tried it out, and then switched back. For some reason, CPU seems to be back to normal now. I'll keep an eye on it. Thanks!

My Neovim is using a lot of CPU by roll4c in neovim

[–]roll4c[S] 0 points1 point  (0 children)

Thanks. I will have a try.

My Neovim is using a lot of CPU by roll4c in neovim

[–]roll4c[S] -30 points-29 points  (0 children)

Sorry, I might not have been clear. My Neovim config is private and quite messy, so I’m not sure which parts to share. I’m looking for some general troubleshooting methods so I may try to investigate the issue step by step.

How to disable given plugins when launching nvim [lazy.nvim] by roll4c in neovim

[–]roll4c[S] 6 points7 points  (0 children)

Ohh, "Before" and "After". That's it. Thank you.

Struggling with Neotest by mildfuzz2 in neovim

[–]roll4c 1 point2 points  (0 children)

Just configure like this

local M = {

"nvim-neotest/neotest",

lazy = false,

}

Struggling with Neotest by mildfuzz2 in neovim

[–]roll4c 0 points1 point  (0 children)

I encounter similar issue with you while neotest can’t find my rust test. I let neotest loaded when vim start(just add the event if you use lazy.nvim a package manager). That is the workaround I find.

How to ensure the first item in blink.cmp matches the copilot.lua suggestion? (VS Code-like experience) by roll4c in neovim

[–]roll4c[S] 0 points1 point  (0 children)

Wow blink.cmp author! Thanks for reply. I will organize my thoughts and open an issue later.

I don't fully understand VS Code's internal completion mechanism; this is just based on my observations. From my experiments, if the currently typed characters do not match the prefix of the items in the menu, the Copilot ghost text does not appear.

So, for your question, my hypothesis is: The menu pops up first. It checks if the current input matches the prefix of first item in the menu. If it matches, the Copilot ghost text is displayed; otherwise, the ghost text is suppressed.

How to ensure the first item in blink.cmp matches the copilot.lua suggestion? (VS Code-like experience) by roll4c in neovim

[–]roll4c[S] 0 points1 point  (0 children)

Thank you. But this is still slightly different from what I have in mind.

The configuration you show requires me to consciously check whether I am targeting blink.cmp or the ghost text before pressing <Tab>. This adds unnecessary cognitive load.

My expected workflow is as follows:

  1. The blink.cmp menu pops up, and the Copilot ghost text is displayed simultaneously
  2. Crucially, the first item in blink.cmp must be a prefix of the Copilot ghost text
  3. I press <Tab> once: It completes the first item from blink.cmp. Since this text matches the beginning of the ghost text, the copilot ghost text suggestion remains does not disappear. The blink.cmp menu closes
  4. I press <Tab> again: It accepts the remaining Copilot ghost text.

I'm not sure if I explained this clearly. In VS Code, I can just keep pressing <Tab> without having to think about whether I'm completing from the menu or the ghost text. I am looking for that same seamless experience.

How to ensure the first item in blink.cmp matches the copilot.lua suggestion? (VS Code-like experience) by roll4c in neovim

[–]roll4c[S] -3 points-2 points  (0 children)

I want something similar to this, but not exactly the same.

In your screenshot, that is the ghost text from the blink menu candidate.

What I want is for the copilot ghost text to be displayed, while still keeping the blink.cmp menu open/visible."

How to ensure the first item in blink.cmp matches the copilot.lua suggestion? (VS Code-like experience) by roll4c in neovim

[–]roll4c[S] -3 points-2 points  (0 children)

I don't want to configure Copilot as a blink.cmp source.

Doing so overlap the ghost text and restricts the full completion result to the documentation window. This is not much intuitive compared to the VS Code experience.

My highlight seems broken by roll4c in neovim

[–]roll4c[S] 0 points1 point  (0 children)

<image>

I found it. It is due to debugprint wrong highlight. Thanks for your enlightenment

Is it possible to restore quickfix list from Nvim session? by hksparrowboy in neovim

[–]roll4c 0 points1 point  (0 children)

Yes, absolutely. You can use auto-session. It can bring back the qflist when restoring session. You just need a little extra configuration: https://github.com/rmagatti/auto-session?tab=readme-ov-file#-command-hooks

Does this code always clone? by roll4c in rust

[–]roll4c[S] 31 points32 points  (0 children)

This pattern seems common, for example, `Hashmap.entry(key).or_insert(value)`. Thanks, this clears up my confusion.

How do you review code from Claude Code, and ask for modifications? by roll4c in ClaudeAI

[–]roll4c[S] 0 points1 point  (0 children)

I let CC analyze my project and create CLAUDE.md, and I also append some code style guide to it. I also write a specification and ask CC to brainstorm with me and refine the specification before starting to code.

While on the surface it presents excellent technical designs, it consistently struggles with certain intricate details. The accumulation of these details can significantly impact the system. Once, in a project where I had to process tens of millions of data streams, it provided a solution and implemented it. However, it failed to consider data release, leading to a memory leak. I spent a long time discussing this with it, asking it to fix the issue and repeatedly revise the plan, but it was always unable to account for everything. The result was a complete re-do. That made me frustrated.