add own airline theme; cleanup init.vim
This commit is contained in:
parent
cfd8185894
commit
53c7905d64
2 changed files with 74 additions and 18 deletions
|
@ -14,6 +14,7 @@ Plugin 'VundleVim/Vundle.vim'
|
||||||
" used Bundle instead of Plugin)
|
" used Bundle instead of Plugin)
|
||||||
|
|
||||||
" USEFUL
|
" USEFUL
|
||||||
|
|
||||||
" comment plugin
|
" comment plugin
|
||||||
Plugin 'tpope/vim-commentary'
|
Plugin 'tpope/vim-commentary'
|
||||||
|
|
||||||
|
@ -54,7 +55,6 @@ Plugin 'norcalli/nvim-colorizer.lua'
|
||||||
|
|
||||||
" powerline
|
" powerline
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plugin 'vim-airline/vim-airline'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
|
||||||
|
|
||||||
" LANGUAGE SUPPORT
|
" LANGUAGE SUPPORT
|
||||||
" vim-coc
|
" vim-coc
|
||||||
|
@ -63,9 +63,6 @@ Plugin 'neoclide/coc.nvim', {'tag': '*', 'branch': 'release'}
|
||||||
" nvim-remote
|
" nvim-remote
|
||||||
Plugin 'mhinz/neovim-remote'
|
Plugin 'mhinz/neovim-remote'
|
||||||
|
|
||||||
" editorconfig plugin
|
|
||||||
Plugin 'editorconfig/editorconfig-vim'
|
|
||||||
|
|
||||||
" language packs
|
" language packs
|
||||||
Plugin 'sheerun/vim-polyglot'
|
Plugin 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
|
@ -250,7 +247,6 @@ let g:airline_section_z = "%l/%L:%c"
|
||||||
let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}"
|
let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}"
|
||||||
" other stuff
|
" other stuff
|
||||||
let g:airline_theme='luna'
|
let g:airline_theme='luna'
|
||||||
let g:airline_solarized_bg='dark'
|
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
let g:airline_inactive_collapse=1
|
let g:airline_inactive_collapse=1
|
||||||
let g:airline_skip_empty_sections = 1
|
let g:airline_skip_empty_sections = 1
|
||||||
|
@ -274,19 +270,6 @@ nmap <C-y> :Buffers<CR>
|
||||||
nmap <Leader>f :GFiles<CR>
|
nmap <Leader>f :GFiles<CR>
|
||||||
let g:fzf_buffers_jump = 1
|
let g:fzf_buffers_jump = 1
|
||||||
|
|
||||||
" vim-ale setup
|
|
||||||
let g:ale_completion_enabled = 1
|
|
||||||
let g:ale_lint_on_text_changed = 'never'
|
|
||||||
let g:ale_fixers = {
|
|
||||||
\ '*': ['trim_whitespace'],
|
|
||||||
\ 'python': ['autopep8']
|
|
||||||
\ }
|
|
||||||
nmap <Leader>d :ALEGoToDefinition<CR>
|
|
||||||
nmap <Leader>r :ALEFindReferences<CR>
|
|
||||||
nmap <Leader>b :ALEFix<CR>
|
|
||||||
nnoremap <space>l :lnext<CR>
|
|
||||||
nnoremap <space>p :lprevious<CR>
|
|
||||||
|
|
||||||
" vimtex setup
|
" vimtex setup
|
||||||
let g:vimtex_compile_progname = 'nvr'
|
let g:vimtex_compile_progname = 'nvr'
|
||||||
|
|
||||||
|
|
73
nvim/luna.vim
Normal file
73
nvim/luna.vim
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette = {}
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.accents = {'red': [ '#ffffff' , '' , 231 , '' , '' ], }
|
||||||
|
|
||||||
|
let s:N1 = [ '#ffffff' , '#005252' , 231 , 36 ]
|
||||||
|
let s:N2 = [ '#ffffff' , '#3399aa' , 231 , 29 ]
|
||||||
|
let s:N3 = [ '#ffffff' , '#003636' , 231 , 23 ]
|
||||||
|
let g:airline#themes#luna#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
let g:airline#themes#luna#palette.normal_modified = {
|
||||||
|
\ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let s:I1 = [ '#ffffff' , '#789f00' , 231 , 106 ]
|
||||||
|
let s:I2 = [ '#ffffff' , '#3399aa' , 231 , 29 ]
|
||||||
|
let s:I3 = [ '#ffffff' , '#003636' , 231 , 23 ]
|
||||||
|
let g:airline#themes#luna#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
let g:airline#themes#luna#palette.insert_modified = {'airline_c': ['#ffffff' ,'#005e5e' ,255, 52, '']}
|
||||||
|
let g:airline#themes#luna#palette.insert_paste = {
|
||||||
|
\ 'airline_a': [ s:I1[0] , '#789f00' , s:I1[2] , 106 , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.replace = copy(g:airline#themes#luna#palette.insert)
|
||||||
|
let g:airline#themes#luna#palette.replace.airline_a = [ s:I2[0] , '#920000' , s:I2[2] , 88 , '' ]
|
||||||
|
let g:airline#themes#luna#palette.replace_modified = g:airline#themes#luna#palette.insert_modified
|
||||||
|
|
||||||
|
let s:V1 = [ '#ffff9a' , '#ff8036' , 222 , 208 ]
|
||||||
|
let s:V2 = [ '#ffffff' , '#3399aa' , 231 , 29 ]
|
||||||
|
let s:V3 = [ '#ffffff' , '#003636' , 231 , 23 ]
|
||||||
|
let g:airline#themes#luna#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
let g:airline#themes#luna#palette.visual_modified = {
|
||||||
|
\ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let s:IA = [ '#4e4e4e' , '#002b2b' , 59 , 23 , '' ]
|
||||||
|
let g:airline#themes#luna#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
||||||
|
let g:airline#themes#luna#palette.inactive_modified = {
|
||||||
|
\ 'airline_c': [ '#e20000' , '' , 166 , '' , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.tabline = {
|
||||||
|
\ 'airline_tab': ['#2aa198', '#3399aa', 231, 29, ''],
|
||||||
|
\ 'airline_tabsel': ['#ffffff', '#2e8b57', 231, 36, ''],
|
||||||
|
\ 'airline_tabtype': ['#ffffff', '#005252', 231, 36, ''],
|
||||||
|
\ 'airline_tabfill': ['#ffffff', '#003636', 231, 23, ''],
|
||||||
|
\ 'airline_tabmod': ['#ffffff', '#780000', 231, 88, ''],
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let s:WI = [ '#ffffff', '#5f0000', 231, 88 ]
|
||||||
|
let g:airline#themes#luna#palette.normal.airline_warning = [
|
||||||
|
\ s:WI[0], s:WI[1], s:WI[2], s:WI[3]
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.normal_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.insert.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.insert_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.visual.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.visual_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.replace.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.replace_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
Loading…
Add table
Reference in a new issue