commit 1a9c72949e3c89abdd74f41b2d746400416c4802 parent 73ebdbbe925d037160e9e1bd67dbc2ac8f777687 Author: Bharatvaj <bharatvaj@yahoo.com> Date: Tue, 2 Aug 2022 23:49:06 +0530 Fine hyper-red, blue is replaced with lightred Use common hyper-red.vim for both vim and neovim Diffstat:
M | .config/nvim/init.lua | | | 29 | +---------------------------- |
M | .config/vim/hyper-red.vim | | | 18 | +++++++++++++++--- |
2 files changed, 16 insertions(+), 31 deletions(-)
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua @@ -42,31 +42,4 @@ augroup END -- theme -- hyper-red -- TODO use lua api -vim.cmd('hi StatusLine ctermbg=white ctermfg=red') - -vim.cmd([[ -if &background == "dark" - hi StatusLineNC ctermbg=white ctermfg=black -else - hi StatusLineNC ctermbg=black ctermfg=white -endif -]]) - -vim.cmd('hi LineNr ctermbg=NONE ctermfg=DarkGray') -vim.cmd('set fillchars=vert:\\│') -vim.cmd('hi VertSplit term=NONE cterm=NONE gui=NONE') -vim.cmd('hi SignColumn ctermbg=NONE guibg=NONE') -vim.cmd('hi Comment ctermfg=DarkGray guifg=DarkGray') -vim.cmd('hi Statement ctermfg=Blue guifg=Blue') -vim.cmd('hi Type ctermfg=LightGray guifg=LightGray') -vim.cmd('hi PreProc ctermfg=LightGray guifg=LightGray') -vim.cmd('hi Constant ctermfg=LightGray guifg=LightGray') -vim.cmd('hi Special ctermfg=red guifg=red') -vim.cmd('hi Identifier ctermfg=white guifg=white') -vim.cmd('hi Visual ctermbg=LightGray ctermfg=DarkGray guibg=LightGray guifg=DarkGray') -vim.cmd('hi Search ctermbg=Blue ctermfg=Black guibg=Blue guifg=Black') -vim.cmd('hi Todo ctermbg=NONE ctermfg=Yellow guibg=NONE guifg=Yellow') - --- TODO handle tCo lesss that 16 case --- Probably use a autogroup for handling tCo count change --- Do it in lua +vim.cmd('source $XDG_CONFIG_HOME/vim/hyper-red.vim') diff --git a/.config/vim/hyper-red.vim b/.config/vim/hyper-red.vim @@ -1,15 +1,27 @@ " Hyper Red +" TODO handle tCo lesss that 16 case +" TODO handle light theme +" Probably use a autogroup for handling tCo count change +" Do it in lua +hi StatusLine ctermbg=white ctermfg=red +if &background == "dark" + hi StatusLineNC ctermbg=white ctermfg=black +else + hi StatusLineNC ctermbg=black ctermfg=white +endif hi LineNr ctermbg=NONE ctermfg=DarkGray set fillchars=vert:\│ hi VertSplit term=NONE cterm=NONE gui=NONE hi SignColumn ctermbg=NONE guibg=NONE hi Comment ctermfg=DarkGray guifg=DarkGray -hi Statement ctermfg=Blue guifg=Blue +hi Statement ctermfg=red guifg=red hi Type ctermfg=LightGray guifg=LightGray hi PreProc ctermfg=LightGray guifg=LightGray -hi Constant ctermfg=LightGray guifg=LightGray +hi Constant ctermfg=red guifg=red +hi String ctermfg=lightred guifg=lightred hi Special ctermfg=red guifg=red hi Identifier ctermfg=white guifg=white hi Visual ctermbg=LightGray ctermfg=DarkGray guibg=LightGray guifg=DarkGray -hi Search ctermbg=Blue ctermfg=Black guibg=Blue guifg=Black +hi Search ctermbg=Blue ctermfg=White guibg=Blue guifg=White hi Todo ctermbg=NONE ctermfg=Yellow guibg=NONE guifg=Yellow +