feat(#2415): add :NvimTreeHiTest (#2664)

* feat(#2415): add :NvimTreeHiTest

* feat(#2415): split out appearance diagnostics
This commit is contained in:
Alexander Courtis
2024-02-11 14:41:40 +11:00
committed by GitHub
parent 8cbb1db8e9
commit b278fc25ae
6 changed files with 326 additions and 201 deletions

View File

@@ -2,6 +2,7 @@ local lib = require "nvim-tree.lib"
local view = require "nvim-tree.view"
local utils = require "nvim-tree.utils"
local actions = require "nvim-tree.actions"
local appearance_diagnostics = require "nvim-tree.appearance.diagnostics"
local events = require "nvim-tree.events"
local help = require "nvim-tree.help"
local live_filter = require "nvim-tree.live-filter"
@@ -39,6 +40,7 @@ local Api = {
mappings = {},
},
commands = {},
diagnostics = {},
}
--- Do nothing when setup not called.
@@ -245,6 +247,8 @@ Api.config.mappings.get_keymap = wrap(keymap.get_keymap)
Api.config.mappings.get_keymap_default = wrap(keymap.get_keymap_default)
Api.config.mappings.default_on_attach = keymap.default_on_attach
Api.diagnostics.hi_test = wrap(appearance_diagnostics.hi_test)
Api.commands.get = wrap(function()
return require("nvim-tree.commands").get()
end)