aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Seifferth <frankseifferth@posteo.net>2022-03-15 11:14:24 +0100
committerFrank Seifferth <frankseifferth@posteo.net>2022-03-15 11:14:24 +0100
commita7f6b2ffd830063a0e88c5e228b7c4bbe8e3894c (patch)
tree4e49a0ea4986a4f610e129b5dc7e058606610fbd
parentcb7a29536c01e4642aa5b74ed9ae18cf5085cca5 (diff)
downloadvis-editorconfig-a7f6b2ffd830063a0e88c5e228b7c4bbe8e3894c.tar.gz
Add note to readme warning about infinite recursion
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8fbbbc4..9b9b72c 100644
--- a/README.md
+++ b/README.md
@@ -11,10 +11,17 @@ You'll need the Lua wrapper for editorconfig-core installed. This can
be done through luarocks: `luarocks install editorconfig-core`
```shell
-git clone https://github.com/seifferth/vis-editorconfig "$HOME/.config/vis/editorconfig"
+git clone https://github.com/seifferth/vis-editorconfig "$HOME/.config/vis/edconf"
```
-Then add `require('editorconfig/edconf')` to your `visrc.lua`.
+Then add `require('edconf')` to your `visrc.lua`.
+
+You may use a different name for the local repository, if you like.
+You could, for instance, use `$HOME/.config/vis/vis-editorconfig` and
+`require('vis-editorconfig')`. Note, however, that the repository **must
+not** be called `editorconfig`. Since the editorconfig-core lua library
+is also called `editorconfig`, naming the repository `editorconfig`
+will cause name conflicts that result in infinite recursion.
## Functionality