mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
feat(treesitter): don't use auto_install. Use ensure_installed instead
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user