Compare commits

..

1 commit

Author SHA1 Message Date
9b631bd2ef Integrate nvim document-highight with LSP attach hook 2024-07-09 10:03:40 +02:00
3 changed files with 3 additions and 20 deletions

View file

@ -1,16 +0,0 @@
#!/bin/sh
mkdir -p "$(git rev-parse --git-dir)/fzf"
history="$(git rev-parse --git-dir)/fzf/history"
null=$(printf "\0")
IFS=''
git status --porcelain | while read line
do
path=$(echo $line | cut -b 4-)
type=$(echo $line | cut -b -3)
/bin/echo -e "$type\x00$(basename $path)\x00$path"
done \
| fzf --multi --with-nth=2 -d '\0' -q "$*" --history=$history \
--preview='if [ ${1} = "??" ]; then /bin/echo -e "\x1b[32m"; cat {3}; else git diff --color {3}; fi' \
| cut -d "$null" -f 3-

View file

@ -20,8 +20,7 @@
[alias] [alias]
adog = log --all --decorate --oneline --graph --date-order adog = log --all --decorate --oneline --graph --date-order
dog = log --decorate --oneline --graph --date-order dog = log --decorate --oneline --graph --date-order
fadd = "! git pick | xargs --open-tty git add" fadd = "! git pick-modified | xargs --open-tty git add"
fig = "! git pick | xargs -L1 git ignore"
faddall = "! git status --porcelain | cut -b 4- | fzf --multi --layout=reverse-list | xargs --open-tty git add" faddall = "! git status --porcelain | cut -b 4- | fzf --multi --layout=reverse-list | xargs --open-tty git add"
fixup = "!git commit --patch --no-edit --amend $(git diff --name-only HEAD~1..HEAD)" fixup = "!git commit --patch --no-edit --amend $(git diff --name-only HEAD~1..HEAD)"
h = log -1 --format=%h h = log -1 --format=%h
@ -35,6 +34,8 @@
track = add --intent-to-add track = add --intent-to-add
ts = timeshift ts = timeshift
reword = commit --amend --no-verify reword = commit --amend --no-verify
pick-modified = "! git status --porcelain | sed '/^??/d' | cut -b 4- | fzf --multi --layout reverse-list"
pm = pick-modified
[user] [user]
useConfigOnly = true useConfigOnly = true
[user "darkwiiplayer"] [user "darkwiiplayer"]

2
vimrc
View file

@ -5,8 +5,6 @@ let &rtp=&rtp.','.expand('<sfile>:p:h').'/vim/pack/*/start/*'
set nocompatible set nocompatible
set updatetime=600
au VimEnter * TSEnable highlight au VimEnter * TSEnable highlight
au VimEnter * TSEnable incremental_selection au VimEnter * TSEnable incremental_selection
au VimEnter * TSEnable indent au VimEnter * TSEnable indent