Skip to content

Instantly share code, notes, and snippets.

View fira42073's full-sized avatar

Fira Curie fira42073

View GitHub Profile
@fira42073
fira42073 / luasnipfzf.lua
Created August 12, 2024 19:04
LuaSnip FzfLua integration
local luasnip = require("luasnip")
local fzf_lua = require("fzf-lua")
local function search_snippets()
-- Get available snippets
local snippets = luasnip.available()
-- Flatten the snippets table and prepare entries for fzf-lua
local entries = {}
for category, snippet_list in pairs(snippets) do