summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSteven Sojka <Steven.Sojka@tdameritrade.com>2020-06-12 14:11:37 -0500
committerSteven Sojka <steelsojka@gmail.com>2020-06-14 05:58:09 -0500
commit44108fe03e5c2cb761090c4abf8e7164225bf62f (patch)
treea32dbd2f9c5ef73222d848a849f0c1185669c05b /README.md
parentca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8 (diff)
feat(queries): allow for user overrides
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index c31ce898..c1987459 100644
--- a/README.md
+++ b/README.md
@@ -181,6 +181,13 @@ List of currently supported languages:
- [ ] nix
- [ ] markdown
+## User Query Extensions
+
+You can add your own query files by placing a query file in vim's runtime path after `nvim-treesitter` is sourced.
+If the language has a built in query file, that file will be appended to or it will be used (useful for languages not yet supported).
+For example, you can add files to `<vim-config-dir>/after/queries/lua/highlights.scm` to add more queries to lua highlights.
+You can also manually add query paths to the runtime path by adding this to your vim config `set rtp+='path/to/queries'`.
+
## Troubleshooting
Before doing anything run `:checkhealth nvim_treesitter`. This will help you find where the bug might come from.