Skip to content

Commit

Permalink
docs: treesitter setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuuon committed Apr 13, 2024
1 parent 108ec47 commit feee197
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ https://github.com/gsuuon/model.nvim/assets/6422188/3af3e65d-d13c-4196-abe1-07d6
- 🦜 Chat in `mchat` filetype buffer
- edit settings or messages at any point
- take conversations to different models
- basic syntax highlights and folds
- treesitter highlights and folds

### Contents
- [Setup](#setup)
Expand Down Expand Up @@ -90,6 +90,11 @@ require('lazy').setup({
})
```

### Treesitter
To get treesitter highlighting of [chat buffers](#chat-prompts) with markdown injections, use `:TSInstall mchat` after model.nvim has been loaded (if you're using Lazy run `:Lazy load model.nvim` first). The grammar repo is at [gsuuon/tree-sitter-mchat](https://github.com/gsuuon/tree-sitter-mchat/).

![image](https://github.com/gsuuon/model.nvim/assets/6422188/6f7d9d9c-f3a7-4671-b7a4-307f727108a3)

## Usage


Expand Down

0 comments on commit feee197

Please sign in to comment.