diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-03-13 13:59:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 13:59:38 +0100 |
commit | 4e99cc12178ee4980734babb0249335dfad9f3c7 (patch) | |
tree | ae4766c2e36e1a235bb8b0d49d1b8c59ded330e3 /runtime/lua/vim/highlight.lua | |
parent | 35799a6629f10cc49e79381e61038b3a4ca3bb23 (diff) | |
parent | 2ae54cef6e54ea97e2a18943389a9dba9ad365d2 (diff) | |
download | rneovim-4e99cc12178ee4980734babb0249335dfad9f3c7.tar.gz rneovim-4e99cc12178ee4980734babb0249335dfad9f3c7.tar.bz2 rneovim-4e99cc12178ee4980734babb0249335dfad9f3c7.zip |
Merge pull request #22627 from nullchilly/highlight-cleanup
refactor!: remove deprecated functions
Diffstat (limited to 'runtime/lua/vim/highlight.lua')
-rw-r--r-- | runtime/lua/vim/highlight.lua | 24 |
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 |