2024-08-05 03:14:48 +00:00
|
|
|
vim.filetype.add{
|
2024-07-23 03:01:36 +00:00
|
|
|
extension = {
|
|
|
|
qb = 'python',
|
|
|
|
tac = 'tac',
|
|
|
|
tin = 'cpp',
|
|
|
|
itin = 'cpp',
|
|
|
|
}
|
2024-08-05 03:14:48 +00:00
|
|
|
}
|
2024-07-23 03:01:36 +00:00
|
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
|
|
pattern = 'tac',
|
|
|
|
callback = function(args)
|
|
|
|
vim.lsp.start({
|
|
|
|
cmd = {'/usr/bin/artaclsp'},
|
|
|
|
cmd_args = {'-I', '/bld/'},
|
|
|
|
name = 'tacc',
|
|
|
|
root_dir = '/src',
|
|
|
|
})
|
2024-07-26 17:47:10 +00:00
|
|
|
vim.treesitter.language.add('tac', { path = '/usr/lib64/libtree-sitter-tac.so' })
|
2024-07-23 03:01:36 +00:00
|
|
|
vim.treesitter.start()
|
|
|
|
end,
|
|
|
|
})
|