We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb33612 commit 9f2f0a8Copy full SHA for 9f2f0a8
lua/nvim-tree/view.lua
@@ -104,13 +104,14 @@ local function create_buffer(bufnr)
104
105
local tab = vim.api.nvim_get_current_tabpage()
106
BUFNR_PER_TAB[tab] = bufnr or vim.api.nvim_create_buf(false, false)
107
- vim.api.nvim_buf_set_name(M.get_bufnr(), "NvimTree_" .. tab)
108
109
bufnr = M.get_bufnr()
110
for _, option in ipairs(BUFFER_OPTIONS) do
111
vim.api.nvim_set_option_value(option.name, option.value, { buf = bufnr })
112
end
113
+ vim.api.nvim_buf_set_name(M.get_bufnr(), "NvimTree_" .. tab)
114
+
115
require("nvim-tree.keymap").on_attach(M.get_bufnr())
116
117
events._dispatch_tree_attached_post(M.get_bufnr())
0 commit comments