Skip to content

Commit

Permalink
Document that nvim-treesitter takes precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Jun 17, 2024
1 parent 8850359 commit 5ad2c6b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,26 @@ For questions or issues when using these packages, contact the package's maintai

[![Packaging status](https://repology.org/badge/vertical-allrepos/vim:vim-just.svg)](https://repology.org/project/vim:vim-just/versions)

## Using alongside `nvim-treesitter`

If `nvim-treesitter` is installed and has a justfile language parser available,
`nvim-treesitter` will overrule `vim-just` by default.

To use `vim-just` syntax highlighting with other `nvim-treesitter` features,
configure `nvim-treesitter` not to use its justfile language parser for syntax highlighting:

```lua
require("nvim-treesitter.configs").setup({
highlight = {
enable = true,
disable = { "just" },
},
})
```

For more details or more complex configurations, see
[nvim-treesitter documentation](https://github.com/nvim-treesitter/nvim-treesitter#modules).

## Migrating old `git clone` based installations to `main`

In late March 2023, development was moved from `master` branch to `main` branch,
Expand Down

0 comments on commit 5ad2c6b

Please sign in to comment.