Fzf for fish changed, lazygit new bind for commitizen and change .gitconfig to use nvimmerge
This commit is contained in:
parent
9d153ecfca
commit
99b2c9ee92
3 changed files with 22 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue