Skip to content

Commit

Permalink
fix: vd command and _vd completion
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed Mar 13, 2023
1 parent 7b1b525 commit d27ca7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zsh/.config/zsh/completions/_vd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#compdef vd

_arguments "1:directory:_files -W $HOME/.config/nvim -g '*'"
_arguments "1:directory:_files -W ${XDG_CONFIG_DIR:-~/.config}/nvim -g '*'"
3 changes: 1 addition & 2 deletions zsh/.config/zsh/functions/vd
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#autoload


command nvim $1
builtin cd ${XDG_CONFIG_DIR:-~/.config/}nvim/$1

0 comments on commit d27ca7b

Please sign in to comment.