fix: address deprecations
This commit is contained in:
@@ -39,10 +39,10 @@ vim.keymap.set("n", "<leader>tt", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
---@class nvim_tree.api.decorator.UserDecorator
|
---@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
|
---@class GitIgnoreDecorator: nvim_tree.api.decorator.UserDecorator
|
||||||
local GitIgnoreDecorator = UserDecorator:extend()
|
local GitIgnoreDecorator = Decorator:extend()
|
||||||
|
|
||||||
function GitIgnoreDecorator:new()
|
function GitIgnoreDecorator:new()
|
||||||
self.enabled = true
|
self.enabled = true
|
||||||
@@ -81,7 +81,7 @@ require("nvim-tree").setup({
|
|||||||
end
|
end
|
||||||
|
|
||||||
local api = require("nvim-tree.api")
|
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", "D", { buffer = bufnr })
|
||||||
vim.keymap.del("n", "bt", { buffer = bufnr })
|
vim.keymap.del("n", "bt", { buffer = bufnr })
|
||||||
|
|||||||
+1
-1
@@ -205,7 +205,7 @@ function Util.format(opts)
|
|||||||
local new_lines =
|
local new_lines =
|
||||||
vim.split(output:gsub("\r\n", "\n"), "\n", { plain = true })
|
vim.split(output:gsub("\r\n", "\n"), "\n", { plain = true })
|
||||||
|
|
||||||
local diff = vim.diff(
|
local diff = vim.text.diff(
|
||||||
table.concat(old_lines, "\n"),
|
table.concat(old_lines, "\n"),
|
||||||
table.concat(new_lines, "\n"),
|
table.concat(new_lines, "\n"),
|
||||||
{ result_type = "indices", algorithm = "histogram" }
|
{ result_type = "indices", algorithm = "histogram" }
|
||||||
|
|||||||
Reference in New Issue
Block a user