Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vrischmann committed Dec 23, 2023
1 parent 671e9a9 commit 7de61b2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ require'nvim-treesitter.configs'.setup {
additional_vim_regex_highlighting = false,
},
}

```

Once `nvim-treesitter` is installed it's just a matter of installing the parser with the command `:TSInstall templ`.
Once `nvim-treesitter` is installed you need to install the parser with the command `:TSInstall templ`.

You can check its status with `:checkhealth`, you should see something like this:
```
Expand All @@ -39,6 +38,17 @@ Parser/Features H L F I J
x) errors found in the query, try to run :TSUpdate {lang} ~
```

Finally you also need to add register the `templ` filetype:

In lua:
```
vim.filetype.add({
extension = {
templ = "templ",
},
})
```

Finally you can open a `templ` file and run `:InspectTree` to see the parse tree.

# Contributing
Expand Down

0 comments on commit 7de61b2

Please sign in to comment.