summaryrefslogtreecommitdiff
path: root/zsh/.zsh/plugins
blob: dae567c437fcf0759b975697ad6a04ccefaca005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/zsh

# Load zgen
[ ! -d ~/.zsh/zgen ] && git clone https://github.com/tarjoilija/zgen.git ~/.zsh/zgen
source "$HOME/.zsh/zgen/zgen.zsh"

# Load plugins
if ! zgen saved; then

    echo "Creating a zgen save"

    # Load oh-my-zsh framework
    zgen oh-my-zsh

    # Oh-my-zsh plugins
    zgen oh-my-zsh plugins/git
    zgen oh-my-zsh plugins/vi-mode

    # Appearance
    zgen load mafredri/zsh-async
    zgen load sindresorhus/pure

    # Navigation plugins
    zgen load urbainvaes/fzf-marks

    # Other plugins
    zgen load rupa/z
    zgen load djui/alias-tips
    zgen load tarruda/zsh-autosuggestions

    # zsh-users plugins
    zgen load zsh-users/zsh-completions src
    zgen load zsh-users/zsh-syntax-highlighting

    # Save all to init script
    zgen save
fi

# Plugins configuration

# Autosuggestion
{
    ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=6'
    bindkey '^y' autosuggest-accept
}