Fzf for fish changed, lazygit new bind for commitizen and change .gitconfig to use nvimmerge

This commit is contained in:
Sergio Laín 2023-09-22 12:54:05 +02:00
parent 9d153ecfca
commit 99b2c9ee92
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 22 additions and 7 deletions

View file

@ -31,9 +31,17 @@ function _fzf_search_directory --description "Search the current directory. Repl
set -f file_paths_selected ($fd_cmd 2>/dev/null | _fzf_wrapper $fzf_arguments)
end
# if test $status -eq 0
# commandline --current-token --replace -- (string escape -- $file_paths_selected | string join ' ')
# end
if test $status -eq 0
commandline --current-token --replace -- (string escape -- $file_paths_selected | string join ' ')
if test -d $file_paths_selected
cd $file_paths_selected
_fzf_search_directory
else
$EDITOR $file_paths_selected
end
end
commandline --function repaint

View file

@ -81,10 +81,10 @@ git:
parseEmoji: false
diffContextSize: 3 # how many lines of context are shown around a change in diffs
os:
editPreset: "neovim" # see 'Configuring File Editing' section
edit: "neovim {{filename}}"
editAtLine: "neovim --line={{line}} {{filename}}"
editAtLineAndWait: "neovim --block --line={{line}} {{filename}}"
editPreset: "nvim-remote" # see 'Configuring File Editing' section
edit: "nvim {{filename}}"
editAtLine: "nvim --line={{line}} {{filename}}"
editAtLineAndWait: "nvim --block --line={{line}} {{filename}}"
refresher:
refreshInterval: 10 # File/submodule refresh interval in seconds. Auto-refresh can be disabled via option 'git.autoRefresh'.
fetchInterval: 60 # Re-fetch interval in seconds. Auto-fetch can be disabled via option 'git.autoFetch'.
@ -226,3 +226,10 @@ keybinding:
init: "i"
update: "u"
bulkMenu: "b"
customCommands:
- key: "C"
command: "git cz c"
description: "commit with commitizen"
context: "files"
loadingText: "opening commitizen commit tool"
subprocess: true

View file

@ -23,7 +23,7 @@
[interactive]
diffFilter = diff-so-fancy --patch
[merge]
tool = nvim
tool = nvimdiff
conflictstyle = diff3
[pager]
blame = diff-so-fancy | less --tabs=4 -RFX