From d2a011e15185c9546926b0ed366c10335596719c Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Mon, 15 Mar 2021 17:42:36 -0500 Subject: [PATCH 1/2] added fzf support --- neovim/.config/nvim/init.vim | 3 --- zsh/.zshrc | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 127da54..8c4d8bf 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -63,9 +63,6 @@ set noswapfile "disables creation of swap files "adds a ruler to the side of the screen set number - "makes the ruler show how many lines away a given line is from your cursor - set relativenumber - "displays the coordinates of your cursour in the statusbar set ruler diff --git a/zsh/.zshrc b/zsh/.zshrc index 48ad8ac..9c1f30e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -190,3 +190,13 @@ PROMPT='%F{cyan}[%n@%m]%f%F{red}├────┤%f${vcs_info_msg_0_} # export grep settings alias grep="grep $GREP_OPTIONS" + +#fzf stuff +#zsh key bindings (different distros put these in different places.) + source $(find /usr/share -path '*fzf/*key-bindings.zsh') + #zsh completions, if it exists. + testPath = $(find /usr/share -path '*fzf/*completion.zsh') + if test $(echo $testPath | wc -c) -ne 0 + then + source $testPath + fi From 134ab4d36bb696871bda25bb1011de0fee140886 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Mon, 15 Mar 2021 17:49:56 -0500 Subject: [PATCH 2/2] fixed sourcing zsh completions when they were not included in distro packaging. --- zsh/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 9c1f30e..4638a38 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -192,11 +192,11 @@ PROMPT='%F{cyan}[%n@%m]%f%F{red}├────┤%f${vcs_info_msg_0_} alias grep="grep $GREP_OPTIONS" #fzf stuff -#zsh key bindings (different distros put these in different places.) + #zsh key bindings (different distros put these in different places.) source $(find /usr/share -path '*fzf/*key-bindings.zsh') #zsh completions, if it exists. - testPath = $(find /usr/share -path '*fzf/*completion.zsh') - if test $(echo $testPath | wc -c) -ne 0 + testPath=$(find /usr/share -path '*fzf/*completion.zsh') + if test $(echo $testPath | wc -c) -eq 0 then source $testPath fi