2022-10-22 05:45:38 +00:00
|
|
|
vim.api.nvim_create_autocmd(
|
|
|
|
'UIEnter', {
|
|
|
|
callback = function()
|
|
|
|
if vim.v.event.chan == 1 then
|
2023-01-28 06:47:53 +00:00
|
|
|
require('config.ginit')
|
2022-10-22 05:45:38 +00:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
once = true,
|
|
|
|
}
|
|
|
|
)
|
2022-11-13 04:06:05 +00:00
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd(
|
|
|
|
'BufRead,BufNewFile', {
|
|
|
|
pattern = '*.gohtml',
|
|
|
|
command = 'set filetype=html'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd(
|
|
|
|
'BufRead,BufNewFile', {
|
|
|
|
pattern = '*.man',
|
|
|
|
command = 'set filetype=xml'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd(
|
|
|
|
'BufRead,BufNewFile', {
|
|
|
|
pattern = '*.w',
|
|
|
|
command = 'set filetype=cpp'
|
|
|
|
}
|
|
|
|
)
|