Ignore html for treesitter, add html to jinja2 ft detection
This commit is contained in:
parent
20d8eb5c15
commit
243d542291
2 changed files with 7 additions and 1 deletions
6
roles/neovim/files/after/plugin/ansible.lua
Normal file
6
roles/neovim/files/after/plugin/ansible.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
-- ansible-vim
|
||||
|
||||
vim.g.ansible_template_syntaxes = {
|
||||
['*.html.j2'] = 'html',
|
||||
['*.sh.j2'] = 'sh',
|
||||
}
|
|
@ -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).
|
||||
|
|
Loading…
Add table
Reference in a new issue