fix: address deprecations

This commit is contained in:
2026-04-10 18:42:18 +02:00
parent dc0d36d55e
commit 6635ed588b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -39,10 +39,10 @@ vim.keymap.set("n", "<leader>tt", function()
end)
---@class nvim_tree.api.decorator.UserDecorator
local UserDecorator = require("nvim-tree.api").decorator.UserDecorator
local Decorator = require("nvim-tree.api").Decorator
---@class GitIgnoreDecorator: nvim_tree.api.decorator.UserDecorator
local GitIgnoreDecorator = UserDecorator:extend()
local GitIgnoreDecorator = Decorator:extend()
function GitIgnoreDecorator:new()
self.enabled = true
@@ -81,7 +81,7 @@ require("nvim-tree").setup({
end
local api = require("nvim-tree.api")
api.config.mappings.default_on_attach(bufnr)
api.map.on_attach.default(bufnr)
vim.keymap.del("n", "D", { buffer = bufnr })
vim.keymap.del("n", "bt", { buffer = bufnr })