diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-08 20:36:47 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-08 20:36:47 +0100 |
commit | cff828e64b5aed1e02e8d8120f7e8701965f8984 (patch) | |
tree | 06b5560900b50dc0067e9fa90f1d077f9dde8dc0 | |
parent | efe7a287e31739df1be46c5cfd5e145a6f5560dd (diff) |
vim lightline update
-rw-r--r-- | .config/nvim/bliss-lightline.vim | 10 | ||||
-rw-r--r-- | .config/nvim/init.vim | 10 |
2 files changed, 13 insertions, 7 deletions
diff --git a/.config/nvim/bliss-lightline.vim b/.config/nvim/bliss-lightline.vim index aac8433..969c7a0 100644 --- a/.config/nvim/bliss-lightline.vim +++ b/.config/nvim/bliss-lightline.vim @@ -1,7 +1,7 @@ let s:bg = [ '#121213', 'NONE' ] let s:fg = [ '#fdf9f7', 'NONE' ] let s:mode = [ '#222222', 'NONE' ] -let s:faint = [ '#393b3b', 'NONE' ] +let s:faint = [ '#454949', 'NONE' ] let s:none = [ 'NONE', 'NONE' ] let s:test = [ '#ff00ff', 'NONE' ] @@ -17,9 +17,9 @@ let s:p.inactive.middle = copy(s:p.normal.middle) let s:p.insert.left = copy(s:p.normal.left) let s:p.replace.left = copy(s:p.insert.left) let s:p.visual.left = copy(s:p.insert.left) -let s:p.tabline.left = copy(s:p.normal.middle) -let s:p.tabline.tabsel = [ [ s:fg, s:faint ] ] -let s:p.tabline.middle = copy(s:p.normal.middle) -let s:p.tabline.right = copy(s:p.normal.middle) +let s:p.tabline.left = copy(s:p.normal.right) +let s:p.tabline.tabsel = [ [ s:fg, s:mode ] ] +let s:p.tabline.middle = copy(s:p.normal.right) +let s:p.tabline.right = copy(s:p.normal.right) let g:lightline#colorscheme#bliss#palette = lightline#colorscheme#flatten(s:p) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 7183db4..72fbc82 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -26,7 +26,6 @@ let g:which_key_map = {} let g:airline_powerline_fonts = 1 let g:minimap_highlight='Visual' hi! link CocFloating SneakScope -cabbrev help tab help autocmd BufNewFile,BufRead *.jdscn set syntax=json if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) @@ -42,6 +41,7 @@ call plug#begin('~/.config/nvim/plugged') Plug 'jiangmiao/auto-pairs' Plug 'tpope/vim-surround' Plug 'itchyny/lightline.vim' +Plug 'itchyny/vim-gitbranch' Plug 'terryma/vim-multiple-cursors' Plug 'vim-scripts/colorizer' Plug 'AndrewRadev/tagalong.vim' @@ -210,7 +210,7 @@ let g:lightline = { \ [ 'readonly', 'filename', 'modified'] \ ], \ 'right': [ - \ [ 'lineinfo' ] + \ [ 'gitbranch', 'lineinfo' ] \ ] \ }, \ 'inactive': { @@ -219,7 +219,13 @@ let g:lightline = { \ ], \ 'right': [ ] \ }, + \ 'component_function': { + \ 'gitbranch': 'gitbranch#name' + \ }, \ } +let g:lightline.tabline = { + \ 'left': [ [ 'tabs' ] ], + \ 'right': [ ] } source $HOME/.config/nvim/bliss-lightline.vim hi! SignColumn guibg=NONE ctermbg=NONE hi GitGutterAdd guibg=NONE |