* fix(#1629): nvim start with file named *NvimTree* opens tree instead of buffer
* Revert "fix(#1629): nvim start with file named *NvimTree* opens tree instead of buffer"
This reverts commit e7136078f7.
* fix(#1629): nvim start with file named *NvimTree* treats file as tree
* fix(#1629): nvim start with file named *NvimTree* treats file as tree
This commit is contained in:
committed by
GitHub
parent
875d38e52c
commit
c66cbdfc25
@@ -135,8 +135,7 @@ end
|
||||
|
||||
local function find_existing_windows()
|
||||
return vim.tbl_filter(function(win)
|
||||
local buf = api.nvim_win_get_buf(win)
|
||||
return api.nvim_buf_get_name(buf):match "NvimTree" ~= nil
|
||||
return utils.is_nvim_tree_buf(api.nvim_win_get_buf(win))
|
||||
end, api.nvim_list_wins())
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user