リビジョン | b7039a6f5e58cd1c95779c23c340b8fb25723067 (tree) |
---|---|
日時 | 2023-01-03 03:26:44 |
作者 | badcoff33 <none@none> |
コミッター | badcoff33 |
choose the right colorscheme"
@@ -279,6 +279,10 @@ augroup init | ||
279 | 279 | " Reload changed buffers. Command rely on 'autoread'. FocusedGained works |
280 | 280 | " only on same terminals |
281 | 281 | autocmd BufEnter * checktime |
282 | + | |
283 | + " Choose color theme dependent on term type | |
284 | + autocmd VimEnter * execute "colorscheme " .. (exists("g:GuiLoaded") ? "twotone" : "apollo") | |
285 | + | |
282 | 286 | autocmd BufEnter * if &pvw | setlocal nonu nornu | endif |
283 | 287 | autocmd TextYankPost * silent! lua vim.highlight.on_yank {higroup="Visual", timeout=150} |
284 | 288 | autocmd TermOpen * setlocal winhighlight=Normal:CursorLine,NormalNC:CursorLine nonumber norelativenumber |