diff options
| author | kiyan <yazdani.kiyan@protonmail.com> | 2022-02-09 21:56:28 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-11 10:42:03 +0100 |
| commit | cf21576b0c60c9e6282af3c053b56949a524d13e (patch) | |
| tree | 8478c6827092deff55e27b3bc78cb37ca4c875ff | |
| parent | chore: remove lua heredocs in documentation and readme (diff) | |
| download | nvim-treesitter-cf21576b0c60c9e6282af3c053b56949a524d13e.tar nvim-treesitter-cf21576b0c60c9e6282af3c053b56949a524d13e.tar.gz nvim-treesitter-cf21576b0c60c9e6282af3c053b56949a524d13e.tar.bz2 nvim-treesitter-cf21576b0c60c9e6282af3c053b56949a524d13e.tar.lz nvim-treesitter-cf21576b0c60c9e6282af3c053b56949a524d13e.tar.xz nvim-treesitter-cf21576b0c60c9e6282af3c053b56949a524d13e.tar.zst nvim-treesitter-cf21576b0c60c9e6282af3c053b56949a524d13e.zip | |
chore: update init.vim refs to init.lua
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | doc/nvim-treesitter.txt | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -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 <https://tree-sitter.github.io/tree-sitter/creating-parsers#installation> 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 { |
