Фикс Treesitter
This commit is contained in:
parent
0aeec22553
commit
6553a9bd81
4 changed files with 54 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue