Skip to content

Instantly share code, notes, and snippets.

@brenopacheco
brenopacheco / howto.md
Last active September 8, 2023 02:11
storing git credentials with gpg and .netrc

storing git credentials with gpg and .netrc

  1. set up git credential helper in .gitconfig
    [credential]
        helper = /usr/share/git/credential/netrc/git-credential-netrc.perl
  1. add login configuration to .netrc
@brenopacheco
brenopacheco / yasnippet-to-vsnip
Created December 7, 2020 23:53
convert yasnippet to vsnip
" Roughly converts yasnippet format snippets to vsnip (vs code like) snippets
" performs in-place substitutions. make sure not to use autopairs plugin.
"
" example:
"
" # -*- mode: snippet -*-
" # name: equals
" # key: eq
" # --
" public boolean equals(${1:Class} other) {
@brenopacheco
brenopacheco / completion.vim
Created December 6, 2020 23:39
neovim vs-code like autocompletion for lsp buffer files/path and vsnip
" ===========================================================================
"
" GIST: snippet / buffer / lsp / snippet vs-code like autocompletion using
" vim-vsnip and neovim lsp plugin. synchronous completion. sorting
" is done by length and source priority. c-n/c-p cycles items, while
" tab select/expands/jump-next placeholder. what's missing is showing
" a popup preview
"
" date: 2020-12-06 22:34
"