added some filetypes
This commit is contained in:
@@ -268,7 +268,7 @@ end
|
|||||||
|
|
||||||
function M.nvim_treesitter_new()
|
function M.nvim_treesitter_new()
|
||||||
local ts = require("nvim-treesitter")
|
local ts = require("nvim-treesitter")
|
||||||
local langs = {
|
local install_langs = {
|
||||||
"angular",
|
"angular",
|
||||||
"bash",
|
"bash",
|
||||||
"css",
|
"css",
|
||||||
@@ -287,11 +287,17 @@ function M.nvim_treesitter_new()
|
|||||||
"tsx",
|
"tsx",
|
||||||
"typescript",
|
"typescript",
|
||||||
"vim",
|
"vim",
|
||||||
|
"yaml",
|
||||||
|
"toml",
|
||||||
}
|
}
|
||||||
|
local run_langs = vim.tbl_extend("force", install_langs, {
|
||||||
|
"htmlangular",
|
||||||
|
"sh",
|
||||||
|
})
|
||||||
ts.setup()
|
ts.setup()
|
||||||
ts.install(langs)
|
ts.install(install_langs)
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = vim.tbl_extend("force", langs, { "htmlangular" }),
|
pattern = run_langs,
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.treesitter.start()
|
vim.treesitter.start()
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user