Files
nvim/lua/plugins/nvim-treesitter.lua

28 lines
799 B
Lua
Raw Normal View History

2022-03-03 13:52:43 -05:00
-----------------------------------------------------------
-- Treesitter configuration file
----------------------------------------------------------
-- Plugin: nvim-treesitter
-- url: https://github.com/nvim-treesitter/nvim-treesitter
2022-09-08 12:21:50 -04:00
local status_ok, nvim_treesitter = pcall(require, 'nvim-treesitter.configs')
if not status_ok then
return
end
-- See: https://github.com/nvim-treesitter/nvim-treesitter#quickstart
nvim_treesitter.setup {
-- A list of parser names, or "all"
ensure_installed = {
'bash', 'css', 'html', 'javascript', 'json', 'lua', 'python',
2022-09-20 16:29:49 -04:00
'vim', 'yaml', 'typescript',
2022-09-08 12:21:50 -04:00
},
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
2022-03-03 13:52:43 -05:00
highlight = {
2022-09-08 12:21:50 -04:00
-- `false` will disable the whole extension
2022-03-03 13:52:43 -05:00
enable = true,
},
}