fix(treesitter): don't lazy-load textobjects when open file from command line

This commit is contained in:
Iordanis Petkakis 2025-10-18 15:20:14 +03:00
parent 561da43c43
commit 2531d18592

View file

@ -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,