Skip to content

Instantly share code, notes, and snippets.

@ianfabs
Last active March 7, 2020 03:48
Show Gist options
  • Save ianfabs/7cb6ca89e00fb9082ec12153f97e4a43 to your computer and use it in GitHub Desktop.
Save ianfabs/7cb6ca89e00fb9082ec12153f97e4a43 to your computer and use it in GitHub Desktop.

Revisions

  1. ianfabs revised this gist Mar 7, 2020. 1 changed file with 58 additions and 16 deletions.
    74 changes: 58 additions & 16 deletions .nvimrc
    Original file line number Diff line number Diff line change
    @@ -1,26 +1,28 @@
    " vim:fileencoding=utf-8:foldmethod=marker

    if &compatible
    set nocompatible " Be iMproved
    endif

    " Required:
    set runtimepath+=/home/ianfabs/.config/nvim/bundle/repos/repos/github.com/Shougo/dein.vim
    set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim

    " Required:
    if dein#load_state('/home/ianfabs/.config/nvim/bundle/repos')
    call dein#begin('/home/ianfabs/.config/nvim/bundle/repos')
    if dein#load_state('~/.cache/dein/repos')
    call dein#begin('~/.cache/dein/repos')

    " Let dein manage dein
    " Required:
    call dein#add('/home/ianfabs/.config/nvim/bundle/repos/repos/github.com/Shougo/dein.vim')
    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('tpope/vim-surround')
    call dein#add('machakann/vim-sandwich')
    call dein#add('Shougo/deoplete.nvim')
    call dein#add('sebastianmarkow/deoplete-rust')
    call dein#add('scrooloose/nerdtree')
    call dein#add('tpope/vim-commentary')
    call dein#add('terryma/vim-multiple-cursors')
    @@ -29,10 +31,17 @@ if dein#load_state('/home/ianfabs/.config/nvim/bundle/repos')
    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()
    @@ -48,13 +57,46 @@ if dein#check_install()
    call dein#install()
    endif

    " Theme Config
    let g:lightline = { 'colorscheme': 'seoul256', }
    set termguicolors
    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
    colo gruvbox
    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
    @@ -66,20 +108,20 @@ set shiftwidth=2
    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 FileType html,css,tsx,jsx EmmetInstall
    " 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




    " hi tsxEqual guifg=#F99575
  2. ianfabs revised this gist May 22, 2019. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions .nvimrc
    Original file line number Diff line number Diff line change
    @@ -73,11 +73,11 @@ autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescript.tsx
    autocmd FileType html,css,tsx,jsx 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 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


  3. ianfabs revised this gist May 22, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions .nvimrc
    Original file line number Diff line number Diff line change
    @@ -24,10 +24,10 @@ if dein#load_state('/home/ianfabs/.config/nvim/bundle/repos')
    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('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')

    " Theming things
  4. ianfabs revised this gist May 22, 2019. 1 changed file with 30 additions and 5 deletions.
    35 changes: 30 additions & 5 deletions .nvimrc
    Original file line number Diff line number Diff line change
    @@ -24,11 +24,15 @@ if dein#load_state('/home/ianfabs/.config/nvim/bundle/repos')
    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('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')

    " Theming things
    call dein#add('morhetz/gruvbox')
    call dein#add('vim-airline/vim-airline')
    call dein#add('itchyny/lightline.vim')

    " Required:
    call dein#end()
    @@ -44,10 +48,14 @@ if dein#check_install()
    call dein#install()
    endif

    set number
    " Theme Config
    let g:lightline = { 'colorscheme': 'seoul256', }
    set termguicolors
    set background=dark " Setting dark mode
    set background=dark
    colo gruvbox
    set guicursor+=v:vCursor

    " Regular Config
    set number relativenumber
    set expandtab
    set tabstop=2
    @@ -57,4 +65,21 @@ set shiftwidth=2
    " My special keybinds
    nmap <C-o> o<Esc>O
    map <C-d> :NERDTreeToggle<CR>
    map <C-s> :w<CR>
    map <C-s> :w<CR>
    " Auto start commands
    " set filetypes as typescript.tsx
    autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescript.tsx
    autocmd FileType html,css,tsx,jsx 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




  5. ianfabs created this gist May 21, 2019.
    60 changes: 60 additions & 0 deletions .nvimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,60 @@
    if &compatible
    set nocompatible " Be iMproved
    endif

    " Required:
    set runtimepath+=/home/ianfabs/.config/nvim/bundle/repos/repos/github.com/Shougo/dein.vim

    " Required:
    if dein#load_state('/home/ianfabs/.config/nvim/bundle/repos')
    call dein#begin('/home/ianfabs/.config/nvim/bundle/repos')

    " Let dein manage dein
    " Required:
    call dein#add('/home/ianfabs/.config/nvim/bundle/repos/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('Shougo/deoplete.nvim')
    call dein#add('sebastianmarkow/deoplete-rust')
    call dein#add('scrooloose/nerdtree')
    call dein#add('tpope/vim-commentary')
    call dein#add('terryma/vim-multiple-cursors')
    call dein#add('leafgarland/typescript-vim')

    " Theming things
    call dein#add('morhetz/gruvbox')
    call dein#add('vim-airline/vim-airline')

    " 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

    set number
    set termguicolors
    set background=dark " Setting dark mode
    colo gruvbox
    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>