new lua style

This commit is contained in:
2025-04-17 21:58:34 +02:00
parent 92ec6976c5
commit 8b99910bb4
26 changed files with 109 additions and 583 deletions

View File

@ -11,44 +11,32 @@ api.nvim_create_autocmd('TextYankPost', {
local fileGrp = api.nvim_create_augroup('file_type', { clear = true })
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { '*.simvis', '*.manifest' },
callback = function()
vim.bo.filetype = 'xml'
end,
callback = function() vim.bo.filetype = 'xml' end,
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { '*.simcfg', '*.simcon', '*.simudex' },
callback = function()
vim.bo.filetype = 'xml'
end,
callback = function() vim.bo.filetype = 'xml' end,
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { 'JenkinsFile*' },
callback = function()
vim.bo.filetype = 'groovy'
end,
callback = function() vim.bo.filetype = 'groovy' end,
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { 'SConstruct', 'SConscript' },
callback = function()
vim.bo.filetype = 'python'
end,
callback = function() vim.bo.filetype = 'python' end,
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { 'doskey' },
callback = function()
vim.bo.filetype = 'dosini'
end,
callback = function() vim.bo.filetype = 'dosini' end,
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { '.clangd', '.clang-tidy' },
callback = function()
vim.bo.filetype = 'yaml'
end,
callback = function() vim.bo.filetype = 'yaml' end,
group = fileGrp,
})