Skip to content

General dependencies

Andres M. Prieto edited this page Jan 12, 2023 · 13 revisions

Packer

As plugin manager packer, you will also need Lua language, also for Windows users packer is available through choco

Linux & macOS

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim
Arch Linux (AUR)
yay packer

Windows

git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"

Optional dependencies

Search engine

For adding complete support for the search engine:

Linux

Ubuntu (apt)
sudo apt-get update && sudo apt-get install ripgrep fd-find
CentOS (yum)
sudo yum -y install ripgrep fd
Fedora (dnf)
sudo dnf install ripgrep fd
Arch Linux (AUR)
sudo pacman -S ripgrep fd

macOS

brew install ripgrep fd

Windows

choco install ripgrep fd

Markdown support

Follow these steps on your init.lua

:source %
<Space> + p + i
:call mkdp#util#install()

Image preview support

This is a required dependency, it may be also found in some other supported OS on the maintainer repo

Ubuntu (apt)
sudo apt install -y ascii-image-converter
Arch Linux
yay -S ascii-image-converter-git

Lua support

It may be a good idea to have Lua support since this configuration have been written in that language, if you want Lua support, you will need:

Mason (Recommended option)
:Mason
# Search "stylua" on formatters
# Install it
Arch Linux (AUR)
yay stylua

Bash support

For OS maintenance, Bash scripting is a good tool that's why this configuration have support for it to make code easy to read, if you want support for that language dependecy, you need:

Linux

sudo snap install shfmt
Arch Linux (AUR)
yay shfmt

macOS & Windows

No supported

Plug

Both implementations use plug as plugin manager

Linux & macOS (Vim)

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Windows (Vim)

iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni $HOME/vimfiles/autoload/plug.vim -Force

Linux & macOS (Neo vim)

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Windows (Neo vim)

iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force

Optional dependencies

Search engine

To check line by line what you are looking on a file, this configuration use a "search engine", it means that you will need some extra software to make it works

Linux

Ubuntu (apt)
sudo apt-get install silversearcher-ag
CentOS (yum)
sudo yum -y install the_silver_searcher
Fedora (dnf)
sudo dnf -y install the_silver_searcher
Arch Linux (AUR)
sudo pacman -S the_silver_searcher

macOS

brew install ack
brew install the_silver_searcher

Windows

choco install ag
choco install ack

Live server like plugin

This is pretty useful for those who make web apps; follow step 1; if it doesn't work, by default follow the Installation

Using Vim

cd ~/.vim/plugged/bracey.vim
npm install --prefix server

Using Neo vim

cd ~/.nvim/plugged/bracey.vim
npm install --prefix server

If this directory doesn't exist, try:

~/.local/share/nvim/site/pack/packer/opt/bracey.vim
npm install --prefix server

Markdown support

Follow these steps on your init.vim or .vimrc

:source %
<Space> + p + i
:call mkdp#util#install()

Bash support

For OS maintenance, Bash scripting is a good tool that's why this configuration have support for it to make code easy to read, if you want support for that language dependecy, you need:

R support

Linux

sudo snap install shfmt
Arch Linux (AUR)
yay shfmt

macOS & Windows

No supported

This project has R support, for those cases when R is needed has been added an R plugin