working nvim config
This commit is contained in:
12
lua/config/treesitter.lua
Normal file
12
lua/config/treesitter.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
callback = function(args)
|
||||
local ft = args.match
|
||||
--local lang = vim.treesitter.language.get_lang(ft)
|
||||
if (vim.treesitter.language.get_lang(ft) ~= nil) then
|
||||
--vim.treesitter.start()
|
||||
end
|
||||
pcall(vim.treesitter.start)
|
||||
end
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user