tidy hi-test name
This commit is contained in:
parent
795792258c
commit
4f40875bbc
@ -2,7 +2,7 @@ local core = require("nvim-tree.core")
|
|||||||
local view = require("nvim-tree.view")
|
local view = require("nvim-tree.view")
|
||||||
local utils = require("nvim-tree.utils")
|
local utils = require("nvim-tree.utils")
|
||||||
local actions = require("nvim-tree.actions")
|
local actions = require("nvim-tree.actions")
|
||||||
local appearance_diagnostics = require("nvim-tree.appearance.diagnostics")
|
local appearance_hi_test = require("nvim-tree.appearance.hi-test")
|
||||||
local events = require("nvim-tree.events")
|
local events = require("nvim-tree.events")
|
||||||
local help = require("nvim-tree.help")
|
local help = require("nvim-tree.help")
|
||||||
local keymap = require("nvim-tree.keymap")
|
local keymap = require("nvim-tree.keymap")
|
||||||
@ -305,7 +305,7 @@ Api.config.mappings.get_keymap = wrap(keymap.get_keymap)
|
|||||||
Api.config.mappings.get_keymap_default = wrap(keymap.get_keymap_default)
|
Api.config.mappings.get_keymap_default = wrap(keymap.get_keymap_default)
|
||||||
Api.config.mappings.default_on_attach = keymap.default_on_attach
|
Api.config.mappings.default_on_attach = keymap.default_on_attach
|
||||||
|
|
||||||
Api.diagnostics.hi_test = wrap(appearance_diagnostics.hi_test)
|
Api.diagnostics.hi_test = wrap(appearance_hi_test)
|
||||||
|
|
||||||
Api.commands.get = wrap(function()
|
Api.commands.get = wrap(function()
|
||||||
return require("nvim-tree.commands").get()
|
return require("nvim-tree.commands").get()
|
||||||
|
|||||||
@ -5,8 +5,6 @@ local Class = require("nvim-tree.classic")
|
|||||||
-- others with name and links less than this arbitrary value are short
|
-- others with name and links less than this arbitrary value are short
|
||||||
local SHORT_LEN = 50
|
local SHORT_LEN = 50
|
||||||
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
---@class (exact) HighlightDisplay: Class for :NvimTreeHiTest
|
---@class (exact) HighlightDisplay: Class for :NvimTreeHiTest
|
||||||
---@field group string nvim-tree highlight group name
|
---@field group string nvim-tree highlight group name
|
||||||
---@field links string link chain to a concretely defined group
|
---@field links string link chain to a concretely defined group
|
||||||
@ -90,7 +88,7 @@ end
|
|||||||
|
|
||||||
---Run a test similar to :so $VIMRUNTIME/syntax/hitest.vim
|
---Run a test similar to :so $VIMRUNTIME/syntax/hitest.vim
|
||||||
---Display all nvim-tree and neovim highlight groups, their link chain and actual definition
|
---Display all nvim-tree and neovim highlight groups, their link chain and actual definition
|
||||||
function M.hi_test()
|
return function()
|
||||||
-- create a buffer
|
-- create a buffer
|
||||||
local bufnr = vim.api.nvim_create_buf(false, true)
|
local bufnr = vim.api.nvim_create_buf(false, true)
|
||||||
|
|
||||||
@ -140,5 +138,3 @@ function M.hi_test()
|
|||||||
|
|
||||||
vim.cmd.buffer(bufnr)
|
vim.cmd.buffer(bufnr)
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
|
||||||
Loading…
Reference in New Issue
Block a user