From cf21576b0c60c9e6282af3c053b56949a524d13e Mon Sep 17 00:00:00 2001 From: kiyan Date: Wed, 9 Feb 2022 21:56:28 +0100 Subject: [PATCH] chore: update init.vim refs to init.lua --- README.md | 6 +++--- doc/nvim-treesitter.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 832454270..e7a122750 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ To make sure a parser is at the latest compatible version (as specified in `nvim Each module provides a distinct tree-sitter-based feature such as [highlighting](#highlight), [indentation](#indentation), or [folding](#folding); see [`:h nvim-treesitter-modules`](doc/nvim-treesitter.txt) or ["Available modules"](#available-modules) below for a list of modules and their options. -All modules are disabled by default and need to be activated explicitly in your `init.vim`, e.g., via +All modules are disabled by default and need to be activated explicitly in your `init.lua`, e.g., via ```lua require'nvim-treesitter.configs'.setup { @@ -258,7 +258,7 @@ We are looking for maintainers to add more parsers and to write query files for # Available modules Modules provide the top-level features of `nvim-treesitter`. -The following is a list of modules included in `nvim-treesitter` and their configuration via `init.vim` (where multiple modules can be combined in a single call to `setup`). +The following is a list of modules included in `nvim-treesitter` and their configuration via `init.lua` (where multiple modules can be combined in a single call to `setup`). Note that not all modules work for all languages (depending on the queries available for them). Additional modules can be provided as [external plugins](https://github.com/nvim-treesitter/nvim-treesitter/wiki/Extra-modules-and-plugins). @@ -333,7 +333,7 @@ If you have a parser that is not on the list of supported languages (either as a 1. Clone the repository or [create a new project](https://tree-sitter.github.io/tree-sitter/creating-parsers#project-setup) in, say, `~/projects/tree-sitter-zimbu`. Make sure that the `tree-sitter-cli` executable is installed and in your path; see for installation instructions. 2. Run `tree-sitter generate` in this directory (followed by `tree-sitter test` for good measure). -3. Add the following snippet to your `init.vim`: +3. Add the following snippet to your `init.lua`: ```lua local parser_config = require "nvim-treesitter.parsers".get_parser_configs() diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index 5d3813705..f3f03bfe8 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -35,7 +35,7 @@ To get a list of supported languages < By default, everything is disabled. -To enable supported features, put this in your `init.vim` file: +To enable supported features, put this in your `init.lua` file: > require'nvim-treesitter.configs'.setup { @@ -75,7 +75,7 @@ you can add your own queries too, see |nvim-treesitter-query-extensions|. All modules are disabled by default, and some provide default keymaps. Each module corresponds to an entry in the dictionary passed to the -`nvim-treesitter.configs.setup` function, this should be in your `init.vim` file. +`nvim-treesitter.configs.setup` function, this should be in your `init.lua` file. > require'nvim-treesitter.configs'.setup {