aboutsummaryrefslogtreecommitdiff
path: root/config/vis/plugins/vis-build/README.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-02-29 16:38:35 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-02-29 17:00:46 +0100
commit055cbe24255be0b376d840a92948c830c46e3adc (patch)
tree84c044003f8e49fdd45d451f3537537e3fcf5ed2 /config/vis/plugins/vis-build/README.md
parentfa90804d713d68831e850d960c211bd0d656a736 (diff)
downloaddotfiles-055cbe24255be0b376d840a92948c830c46e3adc.tar.gz
dotfiles-055cbe24255be0b376d840a92948c830c46e3adc.zip
[vis] add simple plugin to asynchronously run build commands
Diffstat (limited to 'config/vis/plugins/vis-build/README.md')
-rw-r--r--config/vis/plugins/vis-build/README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/vis/plugins/vis-build/README.md b/config/vis/plugins/vis-build/README.md
new file mode 100644
index 0000000..23c4de0
--- /dev/null
+++ b/config/vis/plugins/vis-build/README.md
@@ -0,0 +1,24 @@
+# vis-build - asynchronously run (build) commands
+
+This is a simple `vis` plugin to asynchronously run any shell command using
+the `vis:communicate` API.
+
+I use the plugin to run build commands while keeping my editor usable.
+
+## Configuration
+
+By default, the `build` will execute `make(1)` in the current directory.
+The used build command can either be passed as first argument to `build` or
+is retrieved by calling the function `build.get_default_build_cmd`.
+
+So in order to change the default build command to ninja add this snippet to
+you `visrc.lua`:
+
+```lua
+local build = require('plugins/vis-build')
+build.get_default_build_cmd = function() return 'ninja' end
+```
+
+## Bindings
+
+`<M-b>` is bound to the `build` command.