Git config updates

This commit is contained in:
Daniel Lynn 2021-06-17 16:22:17 -05:00
parent 84573c1f70
commit 9da41d8cb0
6 changed files with 48 additions and 2 deletions

View File

@ -34,4 +34,5 @@ tmux_conf = { source = "tmux.conf", target = ".tmux.conf" }
# git
git_templates = { source = "git-templates", target = ".git-templates" }
gitconfig = { source = "gitconfig", target = ".gitconfig" }
gitignore = { source = "gitignore", target = ".gitignore" }

View File

@ -1,5 +1,3 @@
<PULL_REQUEST_TITLE>
# Problem
<DESCRIPTION>

28
gitconfig Normal file
View File

@ -0,0 +1,28 @@
[init]
defaultBranch = main
templatedir = ~/.git_template
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
[user]
email = daniel.eric.lynn@gmail.com
name = Daniel Lynn
[url "git@github.com:"]
insteadOf = https://github.com
[core]
excludesfile = ~/.gitignore
[fetch]
prune = true
[rebase]
autosquash = true
[diff]
colorMoved = zebra

View File

@ -5,6 +5,8 @@ tags
!tags/
tmp/**/*
*.pyc
.exrc
.nvimrc
.vimrc
.irbrc
.pryrc

12
nvim/coc Normal file
View File

@ -0,0 +1,12 @@
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" use <tab> for trigger completion and navigate to the next complete item
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction
inoremap <silent><expr> <Tab>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<Tab>" :
\ coc#refresh()

5
vimrc
View File

@ -60,6 +60,11 @@ if filereadable(expand("~/.config/nvim/keybindings"))
source ~/.config/nvim/keybindings
endif
" CoC
if filereadable(expand("~/.config/nvim/coc"))
source ~/.config/nvim/coc
endif
" Lightline setup
if filereadable(expand("~/.config/nvim/lightline"))
source ~/.config/nvim/lightline