Skip to content

Instantly share code, notes, and snippets.

View CKolkey's full-sized avatar
💭
Had babies - on a break

Cameron CKolkey

💭
Had babies - on a break
  • Karnov Group A/S
  • Denmark
  • 23:25 (UTC +02:00)
View GitHub Profile
@belgattitude
belgattitude / ci-yarn-install.md
Last active April 18, 2025 16:22
Composite github action to improve CI time with yarn 3+ / node-modules linker.
@ggandor
ggandor / fzy.lua
Created April 25, 2023 12:40
Minimal fzy integration for Neovim in ~100 lines (oldfiles, cmd history, buffers, jumplist, etc.)
-- https://github.com/jhawthorn/fzy/pull/116#issuecomment-538708329
local function fzy(a)
local saved_spk = vim.o.splitkeep
local src_winid = vim.fn.win_getid()
-- lines >= 3 is a hardcoded limit in fzy
local fzy_lines = (vim.v.count > 2 and vim.v.count) or 10
local tempfile = vim.fn.tempname()
local term_cmd = a.input .. ' | fzy -l' .. fzy_lines .. ' > ' .. tempfile
-- FIXME: terminal buffer shows in `:ls!` after exiting.