mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-03-18 08:09:40 +00:00
Update 2026-02-09
This commit is contained in:
10
config/fish/functions/open_nvim_here.fish
Normal file
10
config/fish/functions/open_nvim_here.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
function open_nvim_here --description "Open nvim in cwd"
|
||||
# Run nvim ($EDITOR) on the current dir
|
||||
command $EDITOR .
|
||||
|
||||
# After returning, force fish to resync its vi mode + cursor
|
||||
commandline -f vi-default 2>/dev/null
|
||||
commandline -f vi-insert 2>/dev/null
|
||||
printf '\e[5 q'
|
||||
commandline -f repaint 2>/dev/null
|
||||
end
|
||||
Reference in New Issue
Block a user