Skip to content

Commit

Permalink
feat(treesitter): don't use auto_install. Use ensure_installed instead
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 31, 2022
1 parent 09c27b5 commit 2309580
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A starter template for Neovim using [lazy.nvim](https://github.com/folke/lazy.nv
## ✅ Todo

- [ ] documentation
- [ ] treesitter auto-install seems broken. Switch to `ensure_installed` instead?
- [ ] list all plugins in readme
- [x] treesitter auto-install seems broken. Switch to `ensure_installed` instead?
- [x] list all plugins in readme
- [ ] test all-the-things

<!-- plugins:start -->
Expand Down
18 changes: 17 additions & 1 deletion lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,23 @@ return {
config = function()
require("nvim-treesitter.configs").setup({
sync_install = false,
auto_install = true,
ensure_installed = {
"bash",
"help",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
highlight = { enable = true },
indent = { enable = true },
context_commentstring = { enable = true, enable_autocmd = false },
Expand Down

0 comments on commit 2309580

Please sign in to comment.