Skip to content

Instantly share code, notes, and snippets.

@arnm
arnm / init.lua
Last active July 7, 2025 12:56
CodeCompanion Edit Chat Extension
local Snacks = require("snacks")
-- input:
-- DESIRED BEHAVIOR -------------------------------------------------------------
-- user: hello 1
-- llm: hello
-- user: hello 2
-- llm: hello again
-- user: hello 3 <- last user message
-- llm: hello again
@MariaSolOs
MariaSolOs / builtin-compl.lua
Last active March 2, 2026 04:47
Built-in completion + snippet Neovim setup
---Utility for keymap creation.
---@param lhs string
---@param rhs string|function
---@param opts string|table
---@param mode? string|string[]
local function keymap(lhs, rhs, opts, mode)
opts = type(opts) == 'string' and { desc = opts }
or vim.tbl_extend('error', opts --[[@as table]], { buffer = bufnr })
mode = mode or 'n'
vim.keymap.set(mode, lhs, rhs, opts)
@bitterteasweetorange
bitterteasweetorange / keybindings.json
Last active January 17, 2026 14:33
setup vscode like neovim
[
{
"command": "projectManager.listGitProjects#sideBarGit",
"key": "cmd+o"
},
{
"command": "expand_region",
"key": "ctrl+=",
"when": "editorTextFocus"
},
@bashbunni
bashbunni / .zshrc
Last active March 5, 2026 20:55
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@ryo-ARAKI
ryo-ARAKI / starship.toml
Last active March 12, 2026 02:14
Starship configuration file
# ~/.config/starship.toml
# NOTE: Emojis with variation selectors or unstable display widths may cause prompt rendering glitches.
# Examples include ⚔️ 🏎️ 🗃️ 🗑️ ✒️
# If layout breaks, prefer colourful emojis without variation selectors.
format = """
$username$hostname$directory$git_branch$git_commit$git_state$git_metrics$git_status$julia$python$rust$conda$direnv$fill$memory_usage$cmd_duration$battery$time
$character"""