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 April 17, 2026 15:23
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 April 16, 2026 16:58
setup vscode like neovim
[
{
"command": "projectManager.listGitProjects#sideBarGit",
"key": "cmd+o"
},
{
"command": "expand_region",
"key": "ctrl+=",
"when": "editorTextFocus"
},
@bashbunni
bashbunni / .zshrc
Last active April 25, 2026 07:27
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 April 19, 2026 02:52
Starship configuration file
# ~/.config/starship.toml
"$schema" = "https://starship.rs/config-schema.json"
# 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${custom.python_venv}$rust$typst$conda$direnv
$character"""