working nvim config

This commit is contained in:
THEON-1
2025-10-17 14:02:36 +02:00
parent d2e8cd40f1
commit 050f0bcb20
9 changed files with 65 additions and 37 deletions

12
lua/config/treesitter.lua Normal file
View 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
})