Update diff colors

This commit is contained in:
Daniel Flanagan 2021-07-07 11:22:42 -05:00
parent e8ebb5d0e8
commit 0f00298156
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 15 additions and 14 deletions

View file

@ -36,6 +36,9 @@ hi preproc cterm=none ctermfg=1 ctermbg=0
hi identifier cterm=none ctermfg=4 ctermbg=0
hi constant cterm=none ctermfg=1
hi nontext ctermfg=0 ctermbg=0
hi diffoldfile cterm=none ctermfg=1
hi diffremoved cterm=none ctermfg=1
hi diffadded cterm=none ctermfg=2
" TODO: diagnostics popups, telescope dialogs

View file

@ -69,21 +69,19 @@ vim.api.nvim_command'colorscheme donokai'
vim.api.nvim_command[[
function! SynGroup()
let l:s = synID(line('.'), col('.'), 1)
echo synIDattr(l:s, 'name') . ' -> ' . synIDattr(synIDtrans(l:s), 'name')
let l:s = synID(line('.'), col('.'), 1)
echo synIDattr(l:s, 'name') . ' -> ' . synIDattr(synIDtrans(l:s), 'name')
endfun
nnoremap <c-m> :call SynGroup()<cr>
]]
-- vim.api.nvim_command[[
-- command! W write
-- augroup oncommit
-- au! BufReadPost *
-- if stridx(&ft, 'commit') >= 0
-- exe "startinsert!"
-- endif
-- augroup END
-- augroup slime
-- au! BufNewFile,BufRead *.slimleex set syntax=slim
-- augroup END
-- ]]
vim.api.nvim_command[[
command! W write
command! X writequit
augroup gitcommit
au! VimEnter COMMIT_EDITMSG exec 'norm gg' | startinsert!
augroup END
augroup slime
au! BufNewFile,BufRead *.slimleex set syntax=slim
augroup END
]]