Skip to content

Commit a0d0b3b

Browse files
authored
Merge branch 'master' into fix/windows-path-resolution
2 parents e1083b8 + fa3c458 commit a0d0b3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ The `on_attach` function is passed the `bufnr` of nvim-tree. Use
349349
vim.keymap.set("n", "<C-e>", api.node.open.replace_tree_buffer, opts("Open: In Place"))
350350
---
351351
-- OR use all default mappings
352-
api.map.on_attach.default.on_attach_default(bufnr)
352+
api.map.on_attach.default(bufnr)
353353

354354
-- remove a default
355355
vim.keymap.del("n", "<C-]>", { buffer = bufnr })
@@ -470,7 +470,7 @@ Alternatively, you may apply these default mappings from your
470470
return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true }
471471
end
472472

473-
api.map.on_attach.default.on_attach_default(bufnr)
473+
api.map.on_attach.default(bufnr)
474474

475475
-- your removals and mappings go here
476476
end

lua/nvim-tree/renderer/builder.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ function Builder:format_line(indent_markers, arrows, icon, name, node)
182182
for _, d in ipairs(self.decorators) do
183183
b = d:as(BuiltinDecorator)
184184
if b then
185-
add_to_end(line, b:icons_right_align(node))
185+
add_to_end(rights, b:icons_right_align(node))
186186
elseif api_node then
187-
add_to_end(line, d:icons_right_align(api_node))
187+
add_to_end(rights, d:icons_right_align(api_node))
188188
end
189189
end
190190
if #rights > 0 then

0 commit comments

Comments
 (0)