fix: address deprecations
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user