Skip to content

Instantly share code, notes, and snippets.

@themaxhero
Last active March 28, 2019 00:41
Show Gist options
  • Save themaxhero/25cc4cfb93de27958c76a98e2e94c793 to your computer and use it in GitHub Desktop.
Save themaxhero/25cc4cfb93de27958c76a98e2e94c793 to your computer and use it in GitHub Desktop.
call plug#begin ("~/.config/nvim/plugged")
Plug 'editorconfig/editorconfig-vim'
" -------------------------------- Language Related --------------------------------
Plug 'Quramy/tsuquyomi', {'for': 'typescript'} " Make VIM act like a Typescript IDE
Plug 'plasticboy/vim-markdown' " Markdown Syntax Highlighting
Plug 'hail2u/vim-css3-syntax', {'for': 'css'} " CSS Syntax Highlighting
Plug 'elixir-lang/vim-elixir', {'for': 'elixir'} " Elixir Support
Plug 'vim-ruby/vim-ruby', {'for': 'ruby'} " Ruby Support
Plug 'rust-lang/rust.vim', {'for': 'rust'} " Rust Support
Plug 'leafgarland/typescript-vim', {'for': 'typescript'} " Typescript Support
Plug 'sheerun/vim-polyglot' " Support for Various Languages
" --------------------------------- Utility Stuff -----------------------------------
Plug 'jiangmiao/auto-pairs' " Autocomplete '(' with ')' and so on
Plug 'mileszs/ack.vim' " Search Plugin
Plug 'vim-scripts/todo.vim' " TODO highlighter
Plug 'sickill/vim-monokai' " Colorscheme
Plug 'vim-syntastic/syntastic' " Linter and Fixer
Plug 'mattn/webapi-vim' " WEB-API for VIM
Plug 'mattn/gist-vim', {'depends': 'mattn/webapi-vim'} " Gist direcly from VIM
Plug 'Yggdroot/indentLine' " Show Identation Lines
Plug 'junegunn/rainbow_parentheses.vim' " Rainbow Parentesis and Brackets
Plug 'ctrlpvim/ctrlp.vim' " CTRL+P just like Sublime
Plug 'airblade/vim-gitgutter' " Git In-line diff
Plug 'ap/vim-css-color' " Show CSS Colors in-line
Plug 'vim-scripts/loremipsum' " Fake Text Generator
Plug 'tpope/vim-fugitive' " Git wrapper
Plug 'scrooloose/nerdcommenter' " Comment with one button
Plug 'terryma/vim-multiple-cursors' " Multiple Cursors for VIM
Plug 'eraserhd/parinfer-rust', {'do': 'cargo build --release'} " Make lisp programming be like python
Plug 'clojure-vim/acid.nvim', { 'do': ':UpdateRemotePlugins' } " Clojure development
Plug 'tpope/vim-fireplace', { 'for': 'clojure' } " REPL
Plug 'vim-airline/vim-airline' " Status Line with nice integration
Plug 'wakatime/vim-wakatime' " Wakatime
Plug 'mhinz/vim-startify' " Start Screen
Plug 'djoshea/vim-autoread' " Reload on Save
" --------------------------------- Visual Stuff ------------------------------------
Plug 'miyakogi/seiya.vim' " Transparent Background
Plug 'vim-airline/vim-airline-themes' " Themes for vim-airlines
" ---------------------------- Neovim Completion Manager ----------------------------
Plug 'ncm2/ncm2'
Plug 'roxma/nvim-yarp'
" Enable ncm2 for all buffers && IMPORTANT: :help Ncm2PopupOpen for more information
autocmd BufEnter * call ncm2#enable_for_buffer()
set completeopt=noinsert,menuone,noselect
" Completions
Plug 'ncm2/ncm2-bufword'
Plug 'ncm2/ncm2-path'
Plug 'pbogut/ncm2-alchemist'
Plug 'ncm2/ncm2-pyclang'
Plug 'ncm2/ncm2-racer'
Plug 'ncm2/ncm2-jedi'
" Not using at the Moment
" Plug 'itchyny/lightline.vim' " Status Line
call plug#end()
" Settings Theme
colorscheme monokai
" Settings
set encoding=UTF-8
set clipboard+=unnamedplus
set colorcolumn=80
set nowrap
set number
set rnu
set incsearch
set showmatch
set formatoptions+=o
set splitbelow
set splitright
set autochdir
set tabstop=4
set shiftwidth=4
set laststatus=2
set autochdir
set ignorecase
set smartcase
set autoread
au FocusGained * :checktime
" Visual Configuration
let g:seiya_auto_enable=1
let g:airline_theme='powerlineish'
" Remember cursor from last vim section
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
autocmd BufRead * normal zz
if !has('gui_running')
set t_Co=256
endif
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
augroup rainbow_lisp
autocmd!
autocmd FileType lisp,clojure,scheme RainbowParentheses
augroup END
" Rainbow Pairs Configuration
let g:rainbow#max_level = 16
let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]
" Settings clipboard
let g:gist_clip_command = 'xclip -selection clipboard'
let g:rust_clip_command = 'xclip -selection clipboard'
" Multicursor Settings
let g:multi_cursor_use_default_mapping=0
let g:multi_cursor_next_key='<C-d>'
let g:multi_cursor_prev_key='<C-S-d>'
let g:multi_cursor_skip_key='<C-S-A-d>'
let g:multi_cursor_quit_key='<Esc>'
let g:polyglot_disabled = ['ruby', 'rust', 'elixir', 'typescript']
" Syntastic
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_typescript_checkers = ['tslint']
let g:syntastic_typescript_tslint_args = ['--fix']
let g:syntastic_clojure_checkers = ['joker']
" Nerd Commenter Settings
let g:NERDCommentEmptyLines = 1
let g:NERDCreateDefaultMappings = 0
map - <plug>NERDCommenterToggle
" Terminal
tnoremap <Esc> <C-\><C-n>
" Reload Keybinding
tnoremap <f5> edit
" Tabs and Spaces
function! UseTabs()
set noexpandtab
set autoindent
endfunction
function! UseSpaces()
set expandtab
set softtabstop=0
set autoindent
set smarttab
:%retab
endfunction
set guicursor=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment