dotfiles/dotconfig/nvim/lua/modules/treesitter.lua

25 lines
765 B
Lua
Raw Normal View History

2024-05-28 20:42:24 +02:00
-- TODO: why does this cause errors
-- vim.api.nvim_create_autocmd('FileType', {
-- pattern = 'c,lua,python,rust,bash,js',
-- callback = vim.treesitter.start,
-- })
-- -- TEMP: treesitter for cpp
-- vim.api.nvim_create_autocmd('FileType', {
-- pattern = 'cpp',
-- callback = function()
-- vim.treesitter.language.register('c', { 'cpp' })
-- vim.treesitter.start()
-- end,
-- })
-- TEMP: treesitter for vimscript
-- vim.api.nvim_create_autocmd('FileType', {
-- pattern = 'vim',
-- callback = function()
-- vim.treesitter.language.add('vim',
-- { path = '/home/deneb/git/tree-sitter-vim/libtree-sitter-vim.so' })
-- vim.treesitter.start()
-- end,
-- })
require('nvim-treesitter.configs').setup({ highlight = { enable = true }})