feat(treesitter): highlight help files by default (#26347)

This commit is contained in:
Christian Clason
2023-12-03 15:58:27 +01:00
committed by GitHub
parent 0d885247b0
commit 988b472d90
3 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
-- use treesitter over syntax (for highlighted code blocks)
vim.treesitter.start()
-- add custom highlights for list in `:h highlight-groups`
if vim.endswith(vim.fs.normalize(vim.api.nvim_buf_get_name(0)), '/doc/syntax.txt') then
require('vim.vimhelp').highlight_groups()
end