dotfiles/.nvimrc
2015-10-13 11:11:38 +02:00

94 lines
2.3 KiB
Plaintext

" Global settings
set showcmd
set ruler
set wildmenu
set lazyredraw
set showmatch
set mouse=a
set nofoldenable
set backupdir=~/.config/neovim/backup/
set directory=~/.config/neovim/backup/
set number
set relativenumber
" Colors
set t_Co=16
highlight Keyword ctermfg=06
highlight Define ctermfg=06
highlight Comment ctermfg=03
highlight Type ctermfg=08
highlight Operator ctermfg=05
highlight Identifier ctermfg=13
highlight Constant ctermfg=11
highlight Function ctermfg=01
highlight Include ctermfg=06
highlight Statement ctermfg=06
highlight String ctermfg=03
highlight Search ctermbg=14
highlight NonText ctermfg=00
highlight VertSplit ctermfg=08 cterm=none
highlight LineNr ctermfg=07
highlight Visual ctermbg=08 ctermfg=15
set fillchars+=vert:│
" Indent
set tabstop=2
set shiftwidth=2
set expandtab
" Search
set incsearch
set ignorecase
" Vundle
filetype off
set rtp+=~/.config/neovim/bundle/Vundle.vim
call vundle#begin('~/.config/neovim/bundle')
Plugin 'VundleVim/Vundle.vim'
" Plugins
Plugin 'kien/ctrlp.vim'
Plugin 'itchyny/lightline.vim'
" Languages
Plugin 'kchmck/vim-coffee-script'
Plugin 'fatih/vim-go'
Plugin 'wting/rust.vim'
Plugin 'jgertm/nix.vim'
call vundle#end()
filetype plugin indent on
syntax on
" CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" StatusLine
set laststatus=2
set noshowmode
let s:p = {'normal': {}, 'inactive': {},
\'insert': {}, 'replace' : {},
\'visual': {}, 'tabline' : {}}
let s:p.normal.left = [ [ 07, 14 ], [ 08, 00 ] ]
let s:p.insert.left = [ [ 07, 05 ], [ 14, 00 ] ]
let s:p.visual.left = [ [ 00, 03 ], [ 14, 00 ] ]
let s:p.replace.left = [ [ 00, 02 ], [ 14, 00 ] ]
let s:p.inactive.left = [ [ 12, 00 ], [ 15, 00 ] ]
let s:p.tabline.left = [ [ 14, 00 ] ]
let s:p.normal.right = [ [ 12, 00 ], [ 03, 00 ] ]
let s:p.tabline.right = [ [ 12, 00 ], [ 03, 00 ] ]
let s:p.inactive.right = [ [ 12, 00 ], [ 13, 00 ] ]
let s:p.normal.middle = [ [ 12, 00 ] ]
let s:p.inactive.middle = [ [ 12, 00 ] ]
let s:p.tabline.middle = [ [ 14, 00 ] ]
let s:p.tabline.tabsel = [ [ 14, 00 ] ]
let s:p.normal.error = [ [ 00, 05 ] ]
let s:p.normal.warning = [ [ 00, 02 ] ]
let g:lightline#colorscheme#default#palette = lightline#colorscheme#fill(s:p)