Ignore html for treesitter, add html to jinja2 ft detection

This commit is contained in:
flyingscorpio@clevo 2023-01-23 10:21:53 +01:00
parent 20d8eb5c15
commit 243d542291
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,6 @@
-- ansible-vim
vim.g.ansible_template_syntaxes = {
['*.html.j2'] = 'html',
['*.sh.j2'] = 'sh',
}

View file

@ -18,7 +18,7 @@ require'nvim-treesitter.configs'.setup {
-- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
-- the name of the parser)
-- list of language that will be disabled
disable = { "diff", "gitcommit", "latex", "make", "yaml" },
disable = { "diff", "gitcommit", "html", "latex", "make", "yaml" },
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).