vim: change filetype option

This commit is contained in:
vincent 2023-03-04 14:50:30 +01:00
parent 5349adc986
commit f1949a06ca
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,13 @@ require('plugins.lsp.mason')
---------------------
--Global Varialbles--
---------------------
--
vim.filetype.add({
pattern = {
[".*/tasks/.*.ya?ml"] = "yaml.ansible",
[".*/ansible/.*.ya?ml"] = "yaml.ansible"
},
})
vim.g.airline_powerline_font = true
vim.g.easyescape_chars = {

View File

@ -31,3 +31,6 @@ configs.setup({
enable = true,
},
})
local ft_to_parser = require"nvim-treesitter.parsers".filetype_to_parsername
ft_to_parser.nomad = "hcl"