mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Minor changes to nvim cfg, fish key binds, and provision_linux
This commit is contained in:
parent
19cb58d961
commit
124ea84991
5 changed files with 17 additions and 13 deletions
|
|
@ -4,8 +4,7 @@ function fish_user_key_bindings
|
|||
bind --mode insert ,j 'joplin; commandline -f repaint'
|
||||
bind --mode insert ,p 'nvim +"Telescope git_files"; commandline -f repaint'
|
||||
bind --mode insert ,f 'nvim +"Telescope find_files"; commandline -f repaint'
|
||||
bind --mode insert ,m 'nvim +Neotree; commandline -f repaint'
|
||||
bind --mode insert ,n 'nvim +Neotree; commandline -f repaint'
|
||||
bind --mode insert ,v 'neovide; commandline -f repaint'
|
||||
bind --mode insert ,n 'n; commandline -f repaint'
|
||||
bind --mode insert ,s 'sysz; commandline -f repaint'
|
||||
end
|
||||
|
|
|
|||
|
|
@ -4,17 +4,15 @@
|
|||
|
||||
function n --wraps nnn --description 'support nnn quit and change directory'
|
||||
# Block nesting of nnn in subshells
|
||||
if test -n "$NNNLVL"
|
||||
if [ (expr $NNNLVL + 0) -ge 1 ]
|
||||
echo "nnn is already running"
|
||||
return
|
||||
end
|
||||
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
|
||||
echo "nnn is already running"
|
||||
return
|
||||
end
|
||||
|
||||
# The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set)
|
||||
# To cd on quit only on ^G, remove the "-x" as in:
|
||||
# set NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
||||
# NOTE: NNN_TMPFILE is fixed, should not be modified
|
||||
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
||||
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
||||
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
||||
# without changing the paths.
|
||||
if test -n "$XDG_CONFIG_HOME"
|
||||
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
||||
else
|
||||
|
|
@ -27,7 +25,9 @@ function n --wraps nnn --description 'support nnn quit and change directory'
|
|||
# stty lwrap undef
|
||||
# stty lnext undef
|
||||
|
||||
nnn -de $argv
|
||||
# The command function allows one to alias this function to `nnn` without
|
||||
# making an infinitely recursive alias
|
||||
command nnn $argv
|
||||
|
||||
if test -e $NNN_TMPFILE
|
||||
source $NNN_TMPFILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue