Git config updates
This commit is contained in:
parent
84573c1f70
commit
9da41d8cb0
@ -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" }
|
||||
|
@ -1,5 +1,3 @@
|
||||
<PULL_REQUEST_TITLE>
|
||||
|
||||
# Problem
|
||||
<DESCRIPTION>
|
||||
|
28
gitconfig
Normal file
28
gitconfig
Normal 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
|
12
nvim/coc
Normal file
12
nvim/coc
Normal 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
5
vimrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user