aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:00:57 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:00:57 +0200
commit29efc78b6fec1e815f5bc46300910362a2e65a2a (patch)
tree50d28525b228b502b437654efaaecad708ef1312
parentb4d303c92c47c3694489e124ee27a412bafdfcc8 (diff)
downloaddotfiles-29efc78b6fec1e815f5bc46300910362a2e65a2a.tar.xz
nvim: Replace old modeline with lightline
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nvim/init.vim49
1 files changed, 11 insertions, 38 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
index 0e2093b..0365c96 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -4,6 +4,8 @@
call plug#begin(expand('$XDG_CONFIG_HOME/nvim/plugs'))
+Plug 'itchyny/lightline.vim' " Modeline replacement
+
Plug 'rust-lang/rust.vim'
Plug 'tpope/vim-git'
Plug 'chriskempson/base16-vim'
@@ -11,6 +13,15 @@ Plug 'chriskempson/base16-vim'
call plug#end()
+"""
+" Plugin settings
+"
+
+" Lightline
+let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ }
+
"""
" Set options
@@ -83,44 +94,6 @@ noremap <silent> <Leader>px :Denite buffer file_mru file_rec<CR>
noremap <silent> <Leader>pg :Denite grep<CR>
-
-"""
-" Statusline
-"
-
-set statusline=
-set statusline+=[%n] " Buffer number
-set statusline+=%<\ " Where to truncate
-set statusline+=%.99f " Relative path to file
-set statusline+=\ %y " Filetype flag, [c]; [help]
-set statusline+=%w " Preview window flag, [Preview]
-set statusline+=%m " Modified flag, [+]; [-]
-
-" Show a warning if file is read only, [RO]
-set statusline+=%#identifier#
-set statusline+=%r
-set statusline+=%*
-
-" Show a warning if file format isn’t unix
-set statusline+=%#warningmsg#
-set statusline+=%{&ff!='unix'?'['.&ff.']':''}
-set statusline+=%*
-
-" Show a warning if file encoding isn’t utf-8
-set statusline+=%#warningmsg#
-set statusline+=%{(&fenc!='utf-8'&&&fenc!='')?'['.&fenc.']':''}
-set statusline+=%*
-
-
-"" Right side of statusline
-set statusline+=%= " Left/right separation point
-set statusline+=%-15.((%l,%c-%v)\ %) " Line, column, percentage. (20,0)
-set statusline+=%P " Percentage visible
-
-set laststatus=2 " Always show statusline
-
-
-
"""
" Syntax highlighting
"