24 lines
765 B
Lua
24 lines
765 B
Lua
-- 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 }})
|