From 6553a9bd81d385241d96b5041bc90cea92daccf1 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 22 Apr 2025 20:00:40 +0300 Subject: =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20Treesitter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/lua/autocommands.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nvim/lua/autocommands.lua') diff --git a/nvim/lua/autocommands.lua b/nvim/lua/autocommands.lua index efdace8..4a565db 100644 --- a/nvim/lua/autocommands.lua +++ b/nvim/lua/autocommands.lua @@ -67,14 +67,13 @@ vim.api.nvim_create_autocmd("BufWinEnter", { end, }) -local treeapi = require("nvim-tree.api") - vim.api.nvim_create_autocmd("BufEnter", { callback = function() if vim.bo.filetype == "NvimTree" or vim.fn.expand("%") == "" then return end vim.schedule(function() + local treeapi = require("nvim-tree.api") treeapi.tree.find_file({ update_root = false, focus = false, -- cgit v1.2.3