added treesitter startup code
This commit is contained in:
@@ -268,7 +268,6 @@ end
|
|||||||
|
|
||||||
function M.nvim_treesitter_new()
|
function M.nvim_treesitter_new()
|
||||||
local ts = require("nvim-treesitter")
|
local ts = require("nvim-treesitter")
|
||||||
vim.print(ts.get_available())
|
|
||||||
ts.setup()
|
ts.setup()
|
||||||
ts.install({
|
ts.install({
|
||||||
"angular",
|
"angular",
|
||||||
@@ -290,6 +289,12 @@ function M.nvim_treesitter_new()
|
|||||||
"typescript",
|
"typescript",
|
||||||
"vim",
|
"vim",
|
||||||
})
|
})
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = { "*" },
|
||||||
|
callback = function()
|
||||||
|
vim.treesitter.start()
|
||||||
|
end,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.null_ls()
|
function M.null_ls()
|
||||||
|
|||||||
Reference in New Issue
Block a user