Skip to content

Instantly share code, notes, and snippets.

@ziwon
Forked from toastal/init.vim
Created April 4, 2017 04:07
Show Gist options
  • Save ziwon/9ce25ae783237c725a086c17c74f5db2 to your computer and use it in GitHub Desktop.
Save ziwon/9ce25ae783237c725a086c17c74f5db2 to your computer and use it in GitHub Desktop.
Nvim conf on Mac
let g:python_host_skip_check = 1
let g:python3_host_skip_check = 1
let g:python_host_prog = '/usr/local/bin/python2'
let g:python3_host_prog = '/usr/local/bin/python3'
let g:EditorConfig_exec_path = '/usr/local/bin/editorconfig'
let g:EditorConfig_core_mode = 'external_command'
" Deoplete
function! DoRemote(arg)
UpdateRemotePlugins
endfunction
" Deoplete
function! DoRemote(arg)
UpdateRemotePlugins
endfunction
call plug#begin('~/.config/nvim/plugged')
Plug 'itchyny/lightline.vim'
"Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter'
"Plug 'godlygeek/tabular'
Plug 'tpope/vim-surround'
Plug 'w0rp/ale'
Plug 'ryanoasis/vim-devicons'
Plug 'eugen0329/vim-esearch'
Plug 'andrwb/vim-lapis256'
Plug 'freeo/vim-kalisi'
Plug 'Shougo/deoplete.nvim', { 'do': function('DoRemote') }
Plug 'editorconfig/editorconfig-vim'
Plug 'ap/vim-css-color'
Plug 'eapache/rainbow_parentheses.vim'
Plug 'airblade/vim-gitgutter'
Plug 'ElmCast/elm-vim'
Plug 'neovimhaskell/haskell-vim'
Plug 'alx741/vim-hindent'
Plug 'raichoo/purescript-vim'
Plug 'kchmck/vim-coffee-script'
Plug 'junegunn/goyo.vim'
Plug 'junegunn/limelight.vim'
Plug 'reedes/vim-pencil'
Plug 'chrisbra/Colorizer'
call plug#end()
set relativenumber
set number
set scrolloff=4
set inccommand=split
let mapleader=' '
" colors
if $TERM == 'xterm-256color' || $TERM == 'screen-256color'
set t_Co=256
set background=dark
colorscheme lapis256
highlight Normal ctermfg=none ctermbg=none
" Rainbow Parans colors
let g:rbpt_colorpairs = [
\ [214, 214],
\ [045, 045],
\ [249, 249],
\ [210, 210],
\ [086, 086],
\ [146, 146],
\ [051, 051],
\ [075, 075],
\ [080, 080],
\ ]
endif
" lightline
let g:lightline = {
\ 'component_function': {
\ 'filetype': 'MyFiletype',
\ 'fileformat': 'MyFileformat',
\ }
\ }
function! MyFiletype()
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype . ' ' . WebDevIconsGetFileTypeSymbol() : 'no ft') : ''
endfunction
function! MyFileformat()
return winwidth(0) > 70 ? (&fileformat . ' ' . WebDevIconsGetFileFormatSymbol()) : ''
endfunction
" ALE
let g:ale_lint_on_text_changed = 0
let g:ale_lint_on_save = 1
" Rainbow Parans
let g:bold_parentheses = 0
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
" ESearch
let g:esearch = {
\ 'adapter': 'ag',
\ 'backend': 'nvim',
\ 'out': 'win',
\ 'batch_size': 1000,
\ 'use': ['visual', 'hlsearch', 'last'],
\}
" Elm
let g:elm_format_autosave = 1
" Haskell
" Markdown
let g:markdown_fenced_languages = [
\ 'bash=sh',
\ 'css',
\ 'elm',
\ 'haskell',
\ 'javascript',
\ 'js=javascript',
\ 'json=javascript',
\ 'purescript',
\ 'purs=purescript',
\ 'sass',
\ 'sh',
\ 'xml'
\ ]
" Goyo
let g:goyo_width = 70
let g:goyo_height = "90%"
autocmd! User GoyoEnter Limelight PencilSoft
autocmd! User GoyoLeave Limelight!
" Limelight
let g:limelight_conceal_ctermfg = 'gray'
let g:limelight_conceal_ctermfg = 240
" Pencil
let g:pencil#textwidth = g:goyo_width
augroup pencil
autocmd!
autocmd FileType text call pencil#init({'wrap': 'soft'})
augroup END
" Deoplete
let g:deoplete#enable_at_startup = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment