mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
refactor: rename vim.highlight => vim.hl
Problem: - `vim.highlight` module does not follow `:help dev-name-common`, which documents the name for "highlight" as "hl". - Shorter names are usually preferred. Solution: Rename `vim.highlight` to `vim.hl`. This is not a breaking change until 2.0 (or maybe never).
This commit is contained in:
@ -135,7 +135,7 @@ local config = {
|
||||
lua = {
|
||||
filename = 'lua.txt',
|
||||
section_order = {
|
||||
'highlight.lua',
|
||||
'hl.lua',
|
||||
'diff.lua',
|
||||
'mpack.lua',
|
||||
'json.lua',
|
||||
@ -174,7 +174,7 @@ local config = {
|
||||
'runtime/lua/vim/filetype.lua',
|
||||
'runtime/lua/vim/keymap.lua',
|
||||
'runtime/lua/vim/fs.lua',
|
||||
'runtime/lua/vim/highlight.lua',
|
||||
'runtime/lua/vim/hl.lua',
|
||||
'runtime/lua/vim/secure.lua',
|
||||
'runtime/lua/vim/version.lua',
|
||||
'runtime/lua/vim/_inspector.lua',
|
||||
@ -221,7 +221,7 @@ local config = {
|
||||
end
|
||||
if
|
||||
contains(name, {
|
||||
'highlight',
|
||||
'hl',
|
||||
'mpack',
|
||||
'json',
|
||||
'base64',
|
||||
|
Reference in New Issue
Block a user