全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

filename:myfile.txt 包含指定文件名的 Gists

extension:yml 包含指定扩展名的 Gists

language:go 包含指定编程语言的 Gists

topic:homelab 具有给定主题的 Gists

登录


全部 新建 登录

所有 Gists

最近 创建
最早 创建
最近 更新
最早 更新
sajenim's Avatar

sajenim / cmp.lua

0 喜欢
0 派生
1 文件
最后活跃于 1758768864
Confirm candidate on TAB immediately when there's only one completion entry
Autocompletion Neovim
1 cmp.mapping(function(fallback)
2 local line, col = unpack(vim.api.nvim_win_get_cursor(0))
3
4 -- When the selection menu is open select the next item
5 if cmp.visible() then
6 cmp.select_next_item()
7 -- Ensure we are mid word
8 elseif col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil then
9 -- Open the selection menu
10 cmp.complete()
sajenim's Avatar

sajenim / gist:74e6cd50d66a4e84af84b7f52a0cbbd6

0 喜欢
0 派生
1 文件
最后活跃于 1751804984
add to ublock filters to remove google ai search results
1 google.com##.hdzaWe
sajenim's Avatar

sajenim / wezterm.lua

0 喜欢
0 派生
1 文件
最后活跃于 1751691196
popup terminal for wezterm
1 config.keys = {
2 { -- If there is only one pane, split it vertically, otherwise toggle zoom on the first pane.
3 key = "`",
4 mods = "LEADER",
5 action = wezterm.action_callback(function(_, pane)
6 local tab = pane:tab()
7 local panes = tab:panes_with_info()
8 if #panes == 1 then
9 pane:split({
10 direction = "Bottom",
上一页 下一页

由 Opengist 强力驱动 ⋅ Load: 35ms⋅

中文
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文