diff --git a/lua/astrocommunity/pack/dart/init.lua b/lua/astrocommunity/pack/dart/init.lua index 91d58a845..e3df5f9de 100644 --- a/lua/astrocommunity/pack/dart/init.lua +++ b/lua/astrocommunity/pack/dart/init.lua @@ -16,6 +16,11 @@ return { if opts.ensure_installed ~= "all" then opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "dart" }) end + + -- HACK: Disables the select treesitter textobjects because the Dart treesitter parser is very inefficient. Hopefully this gets fixed and this block can be removed in the future. + -- Reference: https://github.com/AstroNvim/AstroNvim/issues/2707 + local select = vim.tbl_get(opts, "textobjects", "select") + if select then select.disable = require("astrocore").list_insert_unique(select.disable, { "dart" }) end end, }, {