Skip to content

Instantly share code, notes, and snippets.

@brenopacheco
brenopacheco / howto.md
Last active Mar 31, 2021
storing git credentials with gpg and .netrc
View howto.md

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 Dec 7, 2020
convert yasnippet to vsnip
View 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 Dec 6, 2020
neovim vs-code like autocompletion for lsp buffer files/path and vsnip
View completion.vim
" ===========================================================================
"
" 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
"