aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/help.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-12-03 15:58:27 +0100
committerGitHub <noreply@github.com>2023-12-03 15:58:27 +0100
commit988b472d902e6116353fc2ae605bed32a37e6391 (patch)
tree045bae13a18a8962bf027eee5b67ff39363e9e4c /runtime/ftplugin/help.lua
parent0d885247b03439ee3aff4c0b9ec095a29bb21759 (diff)
downloadrneovim-988b472d902e6116353fc2ae605bed32a37e6391.tar.gz
rneovim-988b472d902e6116353fc2ae605bed32a37e6391.tar.bz2
rneovim-988b472d902e6116353fc2ae605bed32a37e6391.zip
feat(treesitter): highlight help files by default (#26347)
Diffstat (limited to 'runtime/ftplugin/help.lua')
-rw-r--r--runtime/ftplugin/help.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/ftplugin/help.lua b/runtime/ftplugin/help.lua
index 4cc3386167..bf3408c2d9 100644
--- a/runtime/ftplugin/help.lua
+++ b/runtime/ftplugin/help.lua
@@ -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