summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorkiyan <yazdani.kiyan@protonmail.com>2022-04-09 14:41:07 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-04-10 11:10:12 +0200
commit7141393f1284f518e4393da24ebda0a03111e6fd (patch)
tree46c7f01fc9ffa18958de4bd5cba5e4ecb4283780 /README.md
parente3adb39586ef573fc048aeb341f3a9fb71754452 (diff)
fix(modules): enabling disabling per buffer and globally
When a module is disabled by default in the config, running TSBufEnable will not enable the module because the is_enabled function will always return false, thus the module not being enabled. Also, disabling/enabling the buffers is flaky. This commit adds per buffer check when the module is not disabled. It also makes the enable and disable more indempotent. i've also renamed TS*All to TS*. Fixes #2754
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 90cf5b07..44e68a16 100644
--- a/README.md
+++ b/README.md
@@ -136,8 +136,8 @@ Each module can also be enabled or disabled interactively through the following
```vim
:TSBufEnable {module} " enable module on current buffer
:TSBufDisable {module} " disable module on current buffer
-:TSEnableAll {module} [{ft}] " enable module on every buffer. If filetype is specified, enable only for this filetype.
-:TSDisableAll {module} [{ft}] " disable module on every buffer. If filetype is specified, disable only for this filetype.
+:TSEnable {module} [{ft}] " enable module on every buffer. If filetype is specified, enable only for this filetype.
+:TSDisable {module} [{ft}] " disable module on every buffer. If filetype is specified, disable only for this filetype.
:TSModuleInfo [{module}] " list information about modules state for each filetype
```