Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ how **plug.kak** works, or add additional steps for `plug` to perform for you.

These are available keywords:
- [branch, tag, commit][9]
- [load-path][10]
- [subset][22]
- [subset][10]
- [load-path][22]
- [noload][11]
- [do][12]
- [theme][13]
Expand All @@ -116,7 +116,7 @@ it. To do so, add this after plugin name: `branch "branch_name"`, `tag

#### Loading subset of files from plugin repository
If you want to load only part of a plugin (assuming that plugin allows this) you
can use `load` keyword followed by filenames. If `load` isn't specified `plug`
can use `subset` keyword followed by filenames. If `subset` isn't specified `plug`
uses it's default value, which is `*.kak`, and by specifying a value, you just
override default one. Here's an example:

Expand Down Expand Up @@ -420,6 +420,23 @@ plugin, depending on its state. This command accepts an optional argument
### `plug`
And last but not least: `plug`. Load plugin from plugin installation directory by its name.

## Tips and Tricks

### Automatic Installation

In your kakrc, replace the ```source "%val{config}/plugins/plug.kak/rc/plug.kak"``` line with the following:

```kak
try %{
source "%val{config}/plugins/plug.kak/rc/plug.kak"
} catch %{ nop %sh{
if [ ! -d "$kak_config/plugins/plug.kak" ]; then
git clone "https://github.com/robertmeta/plug.kak.git" "$kak_config/plugins/plug.kak"
echo "source '%val{config}/plugins/plug.kak/rc/plug.kak'"
fi
}}
```

[1]: https://img.shields.io/github/issues/robertmeta/plug.kak.svg
[2]: https://github.com/robertmeta/plug.kak/issues
[3]: https://img.shields.io/github/license/robertmeta/plug.kak.svg
Expand Down