Tümü Yeni

user:thomas kullanıcı tarafından oluşturulan gistler

title:mygist belirtilen isme sahip gistler

filename:myfile.txt belirtilen isimde dosyaları olan gistler

extension:yml belirtilen uzantıya sahip dosyalara sahip gistler

language:go belirtilen dilde dosyaları olan gistler

topic:homelab gists with given topic

Giriş


Tümü Yeni Giriş

All gists matching topic Neovim

Yakın zamanda oluşturuldu
En eski oluşturuldu
Yakın zamanda güncellendi
En eski güncellendi
sajenim's Avatar

sajenim / cmp.lua

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 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()
Daha yeni Daha eski

Opengist tarafından desteklenmektedir ⋅ Load: 16ms⋅

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