#!/usr/bin/env fish

# PATH

if test -d /usr/local/sbin
  set PATH /usr/local/sbin $PATH
end

if test -x /usr/local/bin/cargo
  set PATH ~/.cargo/bin $PATH
end

if test -x /usr/local/bin/yarn
  set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end

if test -z "$NVIM_LISTEN_ADDRESS"
  set EDITOR nvim --noplugin
  set VISUAL nvim --noplugin
end

if test -n "$NVIM_LISTEN_ADDRESS"
  if test -x /usr/local/bin/page
    set PAGER /usr/local/bin/page
  end
end

if not functions -q fisher
  set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
  curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
  fish -c fisher
end

#!/usr/bin/env fish

# PATH

if test -d /usr/local/sbin
  set PATH /usr/local/sbin $PATH
end

if test -x /usr/local/bin/cargo
  set PATH ~/.cargo/bin $PATH
end

if test -x /usr/local/bin/yarn
  set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end

# Neovim settings

if test -z "$NVIM_LISTEN_ADDRESS"
  set EDITOR nvim --noplugin
  set VISUAL nvim --noplugin
end

if test -n "$NVIM_LISTEN_ADDRESS"
  set MANPAGER "/usr/local/bin/nvr -c 'set ft=man' -o -"
  if test -x /usr/local/bin/page
    set PAGER /usr/local/bin/page
  end
end

# Fisher plugins

if not functions -q fisher
  set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
  curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
  fish -c fisher
end

Set MANPAGER as neovim inside a neovim instance
Set MANPAGER as neovim inside a neovim instance

bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles