Install treesitter parsers upon entering buffer

This commit is contained in:
2023-09-05 18:22:54 +02:00
committed by GitHub
parent 5f134d3f6c
commit d681fffce0
2 changed files with 1 additions and 59 deletions
+1 -58
View File
@@ -17,64 +17,7 @@
-- https://github.com/nvim-treesitter/nvim-treesitter
require("nvim-treesitter.configs").setup({
ensure_installed = {
"bash",
"c",
"cmake",
"comment",
"cpp",
"css",
"csv",
-- "d", -- requires treesitter cli?
"diff",
"dockerfile",
"doxygen",
"dtd",
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
"groovy",
"hare",
"html",
"ini",
"java",
"javascript",
"json",
"json5",
"jsonc",
"latex",
"lua",
"luadoc",
"luap",
"make",
"markdown",
"markdown_inline",
"meson",
"ninja",
"norg",
"odin",
"perl",
"php",
"phpdoc",
"pymanifest",
"python",
"regex",
"requirements",
"robot",
"rst",
"rust",
"sql",
"toml",
"typescript",
"vim",
"vimdoc",
"xml",
"yaml",
"yang",
"zig",
},
auto_install = true,
highlight = {
enable = true,
-1
View File
@@ -88,7 +88,6 @@ local plugins = {
config = function () require("config.treesitter") end,
lazy = true,
event = "VimEnter",
build = ":TSUpdate",
},
{
"mfussenegger/nvim-dap",