Skip to content

Commit

Permalink
change color
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyangze committed Dec 16, 2022
1 parent 4fd683b commit 42a1258
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion layers/common/base.vim
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ augroup relative_numbser
autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set relativenumber
augroup END

set cursorline " 显示当前行
set ruler "显示位置指示器

Expand Down Expand Up @@ -228,4 +229,4 @@ if !exists("g:plug_threads")
endfunction

inoremap <tab> <c-r>=Smart_TabComplete()<CR>
endif
endif
9 changes: 5 additions & 4 deletions layers/common/edit-ale.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ Plug 'dense-analysis/ale', {'on': []}
let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
let g:ale_set_highlights = 0
"自定义error和warning图标
let g:ale_sign_error = ''
let g:ale_sign_error = ''
let g:ale_sign_warning = ''
let g:ale_echo_msg_error_str = 'E'
let g:ale_echo_msg_warning_str = 'W'
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_open_list = 1
let g:ale_open_list = 0
let g:ale_keep_list_window_open = 0
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 0
let g:ale_lint_on_text_changed = 1
let g:ale_lint_on_enter = 1
let g:ale_list_vertical = 0
let g:ale_linters_explicit = 1
Expand All @@ -27,8 +27,9 @@ augroup load_ale
autocmd!
autocmd InsertEnter * call plug#load('ale') | let g:ale_is_loaded = 1 | autocmd! load_ale
augroup END

"autocmd! FileType fzf if(g:ale_is_loaded == 1) | :ALELintStop | endif | autocmd BufLeave <buffer> if(g:ale_is_loaded == 1) | :ALELint | endif
autocmd! FileType fzf if(g:ale_is_loaded == 1) | :ALEDisable | endif | autocmd BufLeave <buffer> if(g:ale_is_loaded == 1) | :ALEEnable | endif
"autocmd! FileType fzf if(g:ale_is_loaded == 1) | :ALEDisable | endif | autocmd BufLeave <buffer> if(g:ale_is_loaded == 1) | :ALEEnable | endif

let g:ale_fixers = {
\ 'php': ['remove_trailing_lines', 'isort', 'trim_whitespace'],
Expand Down
7 changes: 6 additions & 1 deletion layers/user/theme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if !exists('$TMUX')
let g:gruvbox_material_background = 'soft'
let g:gruvbox_material_better_performance = 1
colorscheme gruvbox-material

"colorscheme onehalfdark
hi SignColumn ctermbg=NONE guibg=NONE
hi StatusLineNC guifg=#444444 guibg=#3a3a3a
if has("nvim")
Expand All @@ -28,6 +28,11 @@ if !exists('$TMUX')
hi TabLine cterm=none guifg=#5C6370 ctermfg=59 guibg=#282c34
endif

if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
else
let g:material_style='palenight'
set background=dark
Expand Down

0 comments on commit 42a1258

Please sign in to comment.