Skip to content

Instantly share code, notes, and snippets.

@ianfabs
Last active March 7, 2020 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianfabs/7cb6ca89e00fb9082ec12153f97e4a43 to your computer and use it in GitHub Desktop.
Save ianfabs/7cb6ca89e00fb9082ec12153f97e4a43 to your computer and use it in GitHub Desktop.
" vim:fileencoding=utf-8:foldmethod=marker
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('~/.cache/dein/repos')
call dein#begin('~/.cache/dein/repos')
" Let dein manage dein
" Required:
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here like this:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('wellle/targets.vim')
call dein#add('tommcdo/vim-exchange')
" call dein#add('tpope/vim-surround')
call dein#add('machakann/vim-sandwich')
call dein#add('Shougo/deoplete.nvim')
call dein#add('scrooloose/nerdtree')
call dein#add('tpope/vim-commentary')
call dein#add('terryma/vim-multiple-cursors')
call dein#add('leafgarland/typescript-vim')
call dein#add('peitalin/vim-jsx-typescript')
call dein#add('pangloss/vim-javascript')
call dein#add('wakatime/vim-wakatime')
call dein#add('mattn/emmet-vim')
call dein#add('rust-lang/rust.vim')
call dein#add('mustache/vim-mustache-handlebars')
" call dein#add('jiangmiao/auto-pairs')
" call dein#add('carlitux/deoplete-ternjs', { build = })
" Theming things
call dein#add('morhetz/gruvbox')
call dein#add('itchyny/lightline.vim')
" call dein#add('cocopon/pgmnt.vim')
" call dein#add('cocopon/iceberg.vim')
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
let g:deoplete#enable_at_startup = 1
" ternjs config
let g:deoplete#sources#ternjs#types = 1
let g:deoplete#sources#ternjs#docs = 1
let g:deoplete#sources#ternjs#case_insensitive = 1
" If completions should be returned when inside a literal. Default: 1
let g:deoplete#sources#ternjs#in_literal = 1 " Theme Config
\
let g:deoplete#sources#ternjs#filetypes = [
\ 'jsx',
\ 'javascript.jsx',
\ 'vue',
\ 'typescript'
\ ]
": Theme Settings {{{
set background=dark
set termguicolors
" Lightline Configuration {{{{
let g:lightline = { 'colorscheme': 'seoul256', }
" let g:lightline = { 'colorscheme': 'iceberg', }
" }}}}
": Color Scheme {{{{
" Enable Rich Text Features
let g:gruvbox_underline=1
let g:gruvbox_italic=1
let g:gruvbox_italicize_comments=1
colorscheme gruvbox "iceberg
set guicursor+=v:vCursor
" }}}}
": }}}
" Regular Config
set number relativenumber
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
" My special keybinds
nmap <C-o> o<Esc>O
map <C-d> :NERDTreeToggle<CR>
map <C-s> :w<CR>
map <C-q> :q!<CR>
map <S-h> ^
map <S-l> $
" Auto start commands
" set filetypes as typescript.tsx
autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescript.tsx
" autocmd BufNewFile,BufRead *.hbs set filetype=html
autocmd FileType html,css,tsx,jsx,hbs EmmetInstall
" Highlighting config for tsx
hi tsxTagName guifg=#b16286
hi tsxCloseString guifg=#b16286
hi tsxCloseTag guifg=#83a598
hi tsxAttrib guifg=#d79921 cterm=italic
hi tsxAttributeBraces guifg=#458588
" hi tsxEqual guifg=#F99575
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment