Skip to content

Commit

Permalink
feat: allow treesitter defaults to be overwritten from custom directo…
Browse files Browse the repository at this point in the history
…ry (nvim-lua#732)
  • Loading branch information
rbaumgardner93 authored and dmaspataud committed May 18, 2024
1 parent 38b618a commit c6aeaa6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,14 @@ require('lazy').setup({
{ -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
config = function()
opts = {
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' },
-- Autoinstall languages that are not installed
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
},
config = function(_, opts)
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`

---@diagnostic disable-next-line: missing-fields
Expand Down

0 comments on commit c6aeaa6

Please sign in to comment.