Skip to content

Commit

Permalink
feat(treesitter): use ts-indent and disable legacy syntax engine (aya…
Browse files Browse the repository at this point in the history
…mir#1062)

nvim-treesitter/nvim-treesitter@f53e6e8
fixed the last dangling syntax issue in C/C++, So IMO we can now
completely switch to treesitter-based highlight (and indent) lol
  • Loading branch information
Jint-lzxy authored and husheng committed Nov 14, 2023
1 parent 0fd6b1e commit c9c836a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/modules/configs/editor/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ return vim.schedule_wrap(function()
local ok, is_large_file = pcall(vim.api.nvim_buf_get_var, bufnr, "bigfile_disable_treesitter")
return ok and is_large_file
end,
additional_vim_regex_highlighting = { "c", "cpp" },
additional_vim_regex_highlighting = false,
},
textobjects = {
select = {
Expand Down Expand Up @@ -71,6 +71,7 @@ return vim.schedule_wrap(function()
},
},
context_commentstring = { enable = true, enable_autocmd = false },
indent = { enable = true },
matchup = { enable = true },
}, false, require("nvim-treesitter.configs").setup)
require("nvim-treesitter.install").prefer_git = true
Expand Down

0 comments on commit c9c836a

Please sign in to comment.