From 2531d185924177680c86762ac2cdd8408fcc9951 Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> Date: Sat, 18 Oct 2025 15:20:14 +0300 Subject: [PATCH] fix(treesitter): don't lazy-load textobjects when open file from command line --- lua/lazyvim/plugins/treesitter.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazyvim/plugins/treesitter.lua b/lua/lazyvim/plugins/treesitter.lua index 20c383bd..b8b95ed1 100644 --- a/lua/lazyvim/plugins/treesitter.lua +++ b/lua/lazyvim/plugins/treesitter.lua @@ -141,6 +141,7 @@ return { "nvim-treesitter/nvim-treesitter-textobjects", branch = "main", event = "VeryLazy", + lazy = vim.fn.argc(-1) == 0, -- load treesitter-textobjects early when opening a file from the cmdline opts = { move = { enable = true,