Skip to content

Instantly share code, notes, and snippets.

View cameronr's full-sized avatar

Cameron Ring cameronr

  • Portola Valley, Ca
View GitHub Profile
@cameronr
cameronr / snacks_tab_picker.lua
Last active December 8, 2025 00:44
Snacks.nvim tab picker
local Snacks = require('snacks')
local M = {}
local function get_tabs()
local tabs = {}
local tabpages = vim.api.nvim_list_tabpages()
for i, tabpage in ipairs(tabpages) do
local wins = vim.api.nvim_tabpage_list_wins(tabpage)
local cur_win = vim.api.nvim_tabpage_get_win(tabpage)

Keybase proof

I hereby claim:

  • I am cameronr on github.
  • I am camhonor (https://keybase.io/camhonor) on keybase.
  • I have a public key ASCn02JtR7tWPwc-xQ4gy33k0wkTV3q4rCo8uVV_Ba04Iwo

To claim this, I am signing this object: