Skip to content

Instantly share code, notes, and snippets.

@joseaquino
joseaquino / init.vim
Last active February 4, 2021 05:39
Neovim configuration file
" ================
" - Plugins List -
" ================
call plug#begin('~/.config/nvim/plugged')
Plug 'tpope/vim-surround' " Select/alter block characters like {, [ and '
Plug 'junegunn/vim-easy-align' " Text alignment tool
Plug 'scrooloose/nerdtree' " Vim File manager
Plug 'itchyny/lightline.vim' " Extended status bar at bottom of editor
/* ==========================================================================
* Utility Types and Functions
* ========================================================================== */
export type StateAction<T extends string, P = undefined> = P extends void
? {
type: T
}
: {
type: T
payload: P