mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
feat: Updates lazyvim configuration, adds some configuration files.
This commit is contained in:
@@ -8,17 +8,17 @@
|
||||
#
|
||||
|
||||
function n() {
|
||||
if [ -z "$1" ]; then
|
||||
local gitdir=$(git rev-parse --show-toplevel 2> /dev/null)
|
||||
|
||||
[ -n "$gitdir" ] \
|
||||
&& nvim -c ":Telescope git_files" \
|
||||
&& return 0
|
||||
|
||||
[ -d "$1" ] \
|
||||
&& nvim -c ":Telescope find_files" \
|
||||
&& return 0
|
||||
fi
|
||||
# if [ -z "$1" ]; then
|
||||
# local gitdir=$(git rev-parse --show-toplevel 2> /dev/null)
|
||||
#
|
||||
# [ -n "$gitdir" ] \
|
||||
# && nvim -c ":Telescope git_files" \
|
||||
# && return 0
|
||||
#
|
||||
# [ -d "$1" ] \
|
||||
# && nvim -c ":Telescope find_files" \
|
||||
# && return 0
|
||||
# fi
|
||||
|
||||
nvim "$1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user