aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornullchilly <nullchilly@gmail.com>2023-03-11 17:23:50 +0700
committernullchilly <nullchilly@gmail.com>2023-03-11 17:59:06 +0700
commitc2f7f8d61c6436e1de13d921f13760fbdfe1d624 (patch)
treee1a35099a8b4b04eb19824ecfc9e8d016d87a82d
parent402c31a82d2961172c6eaf8014762f28c60bd93e (diff)
downloadrneovim-c2f7f8d61c6436e1de13d921f13760fbdfe1d624.tar.gz
rneovim-c2f7f8d61c6436e1de13d921f13760fbdfe1d624.tar.bz2
rneovim-c2f7f8d61c6436e1de13d921f13760fbdfe1d624.zip
refactor(highlight)!: remove deprecated functions
vim.highlight.create/link
-rw-r--r--runtime/lua/vim/highlight.lua24
1 files changed, 0 insertions, 24 deletions
diff --git a/runtime/lua/vim/highlight.lua b/runtime/lua/vim/highlight.lua
index 89eae0def5..d71a806ea8 100644
--- a/runtime/lua/vim/highlight.lua
+++ b/runtime/lua/vim/highlight.lua
@@ -10,30 +10,6 @@ M.priorities = {
user = 200,
}
----@private
-function M.create(higroup, hi_info, default)
- vim.deprecate('vim.highlight.create', 'vim.api.nvim_set_hl', '0.9')
- local options = {}
- -- TODO: Add validation
- for k, v in pairs(hi_info) do
- table.insert(options, string.format('%s=%s', k, v))
- end
- vim.cmd(
- string.format(
- [[highlight %s %s %s]],
- default and 'default' or '',
- higroup,
- table.concat(options, ' ')
- )
- )
-end
-
----@private
-function M.link(higroup, link_to, force)
- vim.deprecate('vim.highlight.link', 'vim.api.nvim_set_hl', '0.9')
- vim.cmd(string.format([[highlight%s link %s %s]], force and '!' or ' default', higroup, link_to))
-end
-
--- Highlight range between two positions
---
---@param bufnr integer Buffer number to apply highlighting to