Skip to content

Instantly share code, notes, and snippets.

View xzbdmw's full-sized avatar

xzbdmw xzbdmw

  • China
  • 21:20 (UTC +08:00)
View GitHub Profile
@xzbdmw
xzbdmw / repro.lua
Last active March 27, 2025 01:46
Telescope dynamic height
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",