aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJonas Strittmatter <40792180+smjonas@users.noreply.github.com>2022-07-08 09:36:54 +0200
committerGitHub <noreply@github.com>2022-07-08 07:36:54 +0000
commit365f0eb75f4b8de4655476388c99aaa97f149ded (patch)
treef10dcb86f85baa296573c9017f0754246f64dd45 /README.md
parenthighlights(c): highlight `,` operator as operator (#3107) (diff)
downloadnvim-treesitter-365f0eb75f4b8de4655476388c99aaa97f149ded.tar
nvim-treesitter-365f0eb75f4b8de4655476388c99aaa97f149ded.tar.gz
nvim-treesitter-365f0eb75f4b8de4655476388c99aaa97f149ded.tar.bz2
nvim-treesitter-365f0eb75f4b8de4655476388c99aaa97f149ded.tar.lz
nvim-treesitter-365f0eb75f4b8de4655476388c99aaa97f149ded.tar.xz
nvim-treesitter-365f0eb75f4b8de4655476388c99aaa97f149ded.tar.zst
nvim-treesitter-365f0eb75f4b8de4655476388c99aaa97f149ded.zip
feat: add option to auto-install missing parsers (#3130)
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index c8659fa9a..be070d5c4 100644
--- a/README.md
+++ b/README.md
@@ -109,6 +109,9 @@ require'nvim-treesitter.configs'.setup {
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
+ -- Automatically install missing parsers when entering buffer
+ auto_install = true,
+
-- List of parsers to ignore installing (for "all")
ignore_install = { "javascript" },
@@ -381,7 +384,7 @@ This directory must be writeable and must be explicitly added to the
If this option is not included in the setup options, or is explicitly set to
`nil` then the default install directories will be used. If this value is set
-the default directories will be ignored.
+the default directories will be ignored.
Bear in mind that any parser installed into a parser folder on the runtime path
will still be considered installed. (For example if