Skip to content

Instantly share code, notes, and snippets.

View Leenuus's full-sized avatar
🤡

Leenuus Leenuus

🤡
View GitHub Profile
@Leenuus
Leenuus / pulseaudio-switch-device.sh
Last active April 16, 2024 09:25
Use rofi/fzf to switch between audio devices
#!/bin/bash
# NOTE:
# make sure disable two modules listed below
# module-stream-restore
# module-restore_device
# in ~/.config/pulse/default.pa
# read this post
# https://askubuntu.com/a/690748
@Leenuus
Leenuus / tmux.conf
Created May 28, 2024 10:03
My tmux configuration
# NOTE: make image preview in kitty work
set -g allow-passthrough on
# NOTE: prefix
set -g prefix M-a
bind M-a send-prefix
unbind C-b
set -g status-style fg=default,fg=default
# set -g base-index 1
@Leenuus
Leenuus / README.md
Last active July 19, 2024 18:09
Display command output in neovim split window

I just implemented a simple but really powerful user command suggested by romainl in lua, running asynchronously using vim.uv API.

In short, this is a command named Redir, which redirect ex command or shell commands stdin/sterr to neovim buffers. So you can view them in split window on the fly.

With Redir, you can do:

  • A good way to inspect your neovim.
" show all your messages in split, I love this one and make it default