mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
auevents.lua: keep events in alphabetical order
This commit is contained in:
@@ -85,7 +85,7 @@ local vimau_start = 'syn keyword vimAutoEvent contained '
|
|||||||
w('\n\n' .. vimau_start)
|
w('\n\n' .. vimau_start)
|
||||||
|
|
||||||
for _, au in ipairs(auevents.events) do
|
for _, au in ipairs(auevents.events) do
|
||||||
if not auevents.neovim_specific[au] then
|
if not auevents.nvim_specific[au] then
|
||||||
if lld.line_length > 850 then
|
if lld.line_length > 850 then
|
||||||
w('\n' .. vimau_start)
|
w('\n' .. vimau_start)
|
||||||
end
|
end
|
||||||
@@ -93,7 +93,7 @@ for _, au in ipairs(auevents.events) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
for au, _ in pairs(auevents.aliases) do
|
for au, _ in pairs(auevents.aliases) do
|
||||||
if not auevents.neovim_specific[au] then
|
if not auevents.nvim_specific[au] then
|
||||||
if lld.line_length > 850 then
|
if lld.line_length > 850 then
|
||||||
w('\n' .. vimau_start)
|
w('\n' .. vimau_start)
|
||||||
end
|
end
|
||||||
@@ -104,7 +104,7 @@ end
|
|||||||
local nvimau_start = 'syn keyword nvimAutoEvent contained '
|
local nvimau_start = 'syn keyword nvimAutoEvent contained '
|
||||||
w('\n\n' .. nvimau_start)
|
w('\n\n' .. nvimau_start)
|
||||||
|
|
||||||
for au, _ in pairs(auevents.neovim_specific) do
|
for au, _ in pairs(auevents.nvim_specific) do
|
||||||
if lld.line_length > 850 then
|
if lld.line_length > 850 then
|
||||||
w('\n' .. nvimau_start)
|
w('\n' .. nvimau_start)
|
||||||
end
|
end
|
||||||
|
@@ -19,8 +19,8 @@ return {
|
|||||||
'BufWriteCmd', -- write buffer using command
|
'BufWriteCmd', -- write buffer using command
|
||||||
'BufWritePost', -- after writing a buffer
|
'BufWritePost', -- after writing a buffer
|
||||||
'BufWritePre', -- before writing a buffer
|
'BufWritePre', -- before writing a buffer
|
||||||
'ChanOpen', -- channel was opened
|
|
||||||
'ChanInfo', -- info was received about channel
|
'ChanInfo', -- info was received about channel
|
||||||
|
'ChanOpen', -- channel was opened
|
||||||
'CmdLineEnter', -- after entering cmdline mode
|
'CmdLineEnter', -- after entering cmdline mode
|
||||||
'CmdLineLeave', -- before leaving cmdline mode
|
'CmdLineLeave', -- before leaving cmdline mode
|
||||||
'CmdUndefined', -- command undefined
|
'CmdUndefined', -- command undefined
|
||||||
@@ -99,9 +99,9 @@ return {
|
|||||||
'VimResized', -- after Vim window was resized
|
'VimResized', -- after Vim window was resized
|
||||||
'VimResume', -- after Nvim is resumed
|
'VimResume', -- after Nvim is resumed
|
||||||
'VimSuspend', -- before Nvim is suspended
|
'VimSuspend', -- before Nvim is suspended
|
||||||
'WinNew', -- when entering a new window
|
|
||||||
'WinEnter', -- after entering a window
|
'WinEnter', -- after entering a window
|
||||||
'WinLeave', -- before leaving a window
|
'WinLeave', -- before leaving a window
|
||||||
|
'WinNew', -- when entering a new window
|
||||||
},
|
},
|
||||||
aliases = {
|
aliases = {
|
||||||
BufCreate = 'BufAdd',
|
BufCreate = 'BufAdd',
|
||||||
@@ -109,9 +109,9 @@ return {
|
|||||||
BufWrite = 'BufWritePre',
|
BufWrite = 'BufWritePre',
|
||||||
FileEncoding = 'EncodingChanged',
|
FileEncoding = 'EncodingChanged',
|
||||||
},
|
},
|
||||||
-- List of neovim-specific events or aliases for the purpose of generating
|
-- List of nvim-specific events or aliases for the purpose of generating
|
||||||
-- syntax file
|
-- syntax file
|
||||||
neovim_specific = {
|
nvim_specific = {
|
||||||
DirChanged=true,
|
DirChanged=true,
|
||||||
TabClosed=true,
|
TabClosed=true,
|
||||||
TabNew=true,
|
TabNew=true,
|
||||||
|
Reference in New Issue
Block a user