From 0f00298156d6f18bd75157f172ea2e1ee41fc765 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 7 Jul 2021 11:22:42 -0500 Subject: [PATCH] Update diff colors --- common/neovim/colors/donokai.vim | 3 +++ common/neovim/lua/options.lua | 26 ++++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/common/neovim/colors/donokai.vim b/common/neovim/colors/donokai.vim index 71f9d89..48d3a57 100644 --- a/common/neovim/colors/donokai.vim +++ b/common/neovim/colors/donokai.vim @@ -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 diff --git a/common/neovim/lua/options.lua b/common/neovim/lua/options.lua index 23b77f4..2d58930 100644 --- a/common/neovim/lua/options.lua +++ b/common/neovim/lua/options.lua @@ -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 :call SynGroup() ]] --- 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 +]]