Add angular support
This commit is contained in:
parent
6564001d1c
commit
6d0b9f43f6
2 changed files with 15 additions and 1 deletions
|
|
@ -2,4 +2,17 @@
|
|||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
vim.filetype.add {
|
||||
pattern = {
|
||||
['.*.component.html'] = 'angular.html', -- Sets the filetype to `angular.html` if it matches the pattern
|
||||
},
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'angular.html',
|
||||
callback = function()
|
||||
vim.treesitter.language.register('angular', 'angular.html') -- Register the filetype with treesitter for the `angular` language/parser
|
||||
end,
|
||||
})
|
||||
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue