dotfiles/.nvimrc

94 lines
2.3 KiB
Plaintext
Raw Normal View History

2015-08-25 00:05:28 +02:00
" Global settings
set showcmd
set ruler
2015-10-13 11:11:38 +02:00
set wildmenu
set lazyredraw
set showmatch
2015-08-25 00:05:28 +02:00
set mouse=a
2015-10-13 11:11:38 +02:00
set nofoldenable
2015-09-25 17:42:06 +02:00
set backupdir=~/.config/neovim/backup/
set directory=~/.config/neovim/backup/
2015-08-25 00:05:28 +02:00
set number
2015-10-13 11:11:38 +02:00
set relativenumber
2015-08-25 00:05:28 +02:00
" Colors
2015-10-13 11:11:38 +02:00
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:│
2015-08-25 00:05:28 +02:00
" Indent
set tabstop=2
set shiftwidth=2
set expandtab
" Search
set incsearch
set ignorecase
2015-10-01 13:40:16 +02:00
" Vundle
filetype off
set rtp+=~/.config/neovim/bundle/Vundle.vim
call vundle#begin('~/.config/neovim/bundle')
Plugin 'VundleVim/Vundle.vim'
2015-10-13 11:11:38 +02:00
" Plugins
2015-10-01 13:40:16 +02:00
Plugin 'kien/ctrlp.vim'
2015-10-13 11:11:38 +02:00
Plugin 'itchyny/lightline.vim'
2015-10-01 13:40:16 +02:00
" Languages
Plugin 'kchmck/vim-coffee-script'
Plugin 'fatih/vim-go'
Plugin 'wting/rust.vim'
2015-10-13 11:11:38 +02:00
Plugin 'jgertm/nix.vim'
2015-10-01 13:40:16 +02:00
call vundle#end()
filetype plugin indent on
2015-10-13 11:11:38 +02:00
syntax on
2015-10-01 13:40:16 +02:00
" CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
2015-10-13 11:11:38 +02:00
" StatusLine
set laststatus=2
set noshowmode
let s:p = {'normal': {}, 'inactive': {},
\'insert': {}, 'replace' : {},
\'visual': {}, 'tabline' : {}}
2015-10-01 13:40:16 +02:00
2015-10-13 11:11:38 +02:00
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 ] ]
2015-10-01 13:40:16 +02:00
2015-10-13 11:11:38 +02:00
let g:lightline#colorscheme#default#palette = lightline#colorscheme#fill(s:p)