diff options
| author | 2025-04-22 20:00:40 +0300 | |
|---|---|---|
| committer | 2025-04-22 20:00:40 +0300 | |
| commit | 6553a9bd81d385241d96b5041bc90cea92daccf1 (patch) | |
| tree | a525d1d89d98ef06d45fb8af0afd7dc00a36c0ef /nvim/lua/autocommands.lua | |
| parent | Быстрый выход (diff) | |
| download | dotfiles-6553a9bd81d385241d96b5041bc90cea92daccf1.tar.gz dotfiles-6553a9bd81d385241d96b5041bc90cea92daccf1.tar.bz2 dotfiles-6553a9bd81d385241d96b5041bc90cea92daccf1.tar.xz dotfiles-6553a9bd81d385241d96b5041bc90cea92daccf1.zip | |
Фикс Treesitter
Diffstat (limited to '')
| -rw-r--r-- | nvim/lua/autocommands.lua | 3 |
1 files changed, 1 insertions, 2 deletions
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, |
