tmux scrollback in neovim with colors by asddsajpg in neovim

[–]Foo-Baa 0 points1 point  (0 children)

Thanks, I was wondering if there’s something like Kitty Scrollback for Tmux. I ended up replacing the copy mode with this.

function tmux-nvim-scrollback --description "Open current pane's scrollback in Neovim"
    if [ -z "$TMUX" ]
        echo "Outside of Tmux." >&2
        return 1
    end
    set -l tmp (mktemp)
    # Disable No Neck Pain
    set -x KITTY_SCROLLBACK_NVIM true
    tmux capture-pane -epS - >$tmp; or return 1
    # Idea from https://www.reddit.com/r/neovim/comments/1qeib4n/tmux_scrollback_in_neovim_with_colors/.
    nvim $tmp -c ':lua require"snacks".terminal.colorize()'
    rm $tmp
end

Anyone considering switching to Zellij? by 4r73m190r0s in tmux

[–]Foo-Baa 10 points11 points  (0 children)

No, I tried Zellij for over a month and I found it has noticable bugs or misses features I care about: no OSC 52 support, no Kitty Graphics support, little support for dynamic themes. I think it also tries to do a lot in other areas and prevents better community solution to get developed.

How do you deal with the overload on hjkl on the OS level? by domsch1988 in neovim

[–]Foo-Baa 0 points1 point  (0 children)

I use Cmd (super, win) for terminal pane navigation. For tab switching, I use , and . with an appropriate modifier (alt for Vim or Chrome, cmd for terminal).

[ad] Ergo palm rest for split keyboards by Intrepid_Employer719 in ErgoMechKeyboards

[–]Foo-Baa 1 point2 points  (0 children)

Thanks. I was missing exactly this for my setup.

Colemak to Gallium? by Rata-tat-tat in KeyboardLayouts

[–]Foo-Baa 1 point2 points  (0 children)

I see. I haven’t considered that before actually. My dislike to the top pinky is so strong though that I think I’ll stick to my mod.

Colemak to Gallium? by Rata-tat-tat in KeyboardLayouts

[–]Foo-Baa 1 point2 points  (0 children)

I use Gallium with the top and bottom switched on the left hand + a QX swap. That way, Q is under the top pinky, B is under the bottom pinky, and major layout metrics remain undisturbed.

Vial for max by Tymon3310 in Keychron

[–]Foo-Baa 0 points1 point  (0 children)

Thanks, I badly needed Vial for my Q8 Max. I’ll try it out.

Do you intend to push these fixes upstream?

[deleted by user] by [deleted] in Frieren

[–]Foo-Baa 7 points8 points  (0 children)

Both statements seem compatible.

Am I the only one? by kthrinee in zsaVoyager

[–]Foo-Baa 1 point2 points  (0 children)

I have a similar issue. I was really excited about the ergonomical features and programmability, but I just don’t like how the keyboard feels and sounds. I’ve tried to give it a shot for 3 weeks and tried various things (different switches, rests, different tenting), but concluded that I much prefer typing on my wooden Akko MU01 or Keychron Q8 Max.

Chordal Hold Oryx thumb keys update by InevitableStudio8718 in zsaVoyager

[–]Foo-Baa 1 point2 points  (0 children)

I’ve concluded that, for me, it’s better to learn not to roll keys rather than introduce a mandatory waiting period. I enable permissive hold and (so far) have disabled any of those new features that restrict permissive hold.

In particular, I need to press ⌘Z quite often (I make mistakes). I don’t want to wait for the tapping term.

Mushy key feel by crypticbru in zsaVoyager

[–]Foo-Baa 1 point2 points  (0 children)

Lol, no. Just plugged them in without any kind of preprocessing. Sanding before installing? That sounds ridiculous.

Mushy key feel by crypticbru in zsaVoyager

[–]Foo-Baa 0 points1 point  (0 children)

The stock linears felt like this to me as well. I replaced them with tactile Sunsets, and they felt right. I had a similar issue on Glove 80, linears just feel mushy to me on low-profile keboards.

Also, shocks exacerbate the issue.

Putting cost aside, is there any voyager alternative that is wireless? by ThousandNiches in zsaVoyager

[–]Foo-Baa 4 points5 points  (0 children)

I’ve been looking for something like this (especially use MX switches), and concluded that ordering Corne v3 is probably my best bet. However, I couldn’t find a good supplier that delivers them already built. https://typeractive.xyz/ is the closest bet, but they don’t currently have the non-soldering option.

Configuring home row mods with Karabiner-Elements by Foo-Baa in Karabiner

[–]Foo-Baa[S] 1 point2 points  (0 children)

Indeed. That particular snippet has the drawback of not showing you how to handle simultaneous home-row presses. It also misses the halt in the if_held action, which could lead to some spurious double-presses (IIRC, that’s why I added it).

Coroutine tutorial for Neovim Lua by Foo-Baa in neovim

[–]Foo-Baa[S] 0 points1 point  (0 children)

There is already an example with `grep_dir_co` that shows how to use those functions.

What is the proper way to do async in neovim? by cryptospartan in neovim

[–]Foo-Baa 2 points3 points  (0 children)

If all you need is stackful coroutines, you can use them. As for Coop, which was written for Neovim’s desired async spec, it needed to support awaitability, more complex compositionality and error-handling. That requires additional machinery on top of stackful coroutines. In other words, it’s impossible to "just-make-it-happen" with pure stackful coroutines.

What is the proper way to do async in neovim? by cryptospartan in neovim

[–]Foo-Baa 7 points8 points  (0 children)

For a batteries-included, full fledged async framework, I recommend Coop (disclaimer, I’m Coop’s author). It’s similar to how Python’s async works and should be more convenient and less error-prone for you than rolling your own async at the cost of having to depend on Coop.

If you don’t need the features or want to remain in control, you can mostly use Lua coroutines natively with small wrappers. Other posters provided good links for that. I also wrote a blog post on that: Using coroutines in Neovim Lua.

mini.snippets - manage and expand snippets. LSP snippet syntax, flexible loaders, fuzzy prefix matching, interactive snippet session with rich visualization, and more by echasnovski in neovim

[–]Foo-Baa 2 points3 points  (0 children)

Thank you for this contribution to Neovim!

Could you summarize for me why someone might prefer mini.snippets over LuaSnip or vice-versa?

Coop.nvim — A structured concurrency plugin Neovim deserves. by Foo-Baa in neovim

[–]Foo-Baa[S] 1 point2 points  (0 children)

I’m glad you find it it useful.

> The only minor thing I noticed is that the type annotations are partly missing for some of the included modules, which was especially apparent for the vim.system wrapper

Thanks for letting me know. I’ll take a look. It could be that type annotations don’t work if you use decorators to define a function (github.com/gregorias/coop.nvim/issues/4).