mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
feat(treesitter): highlight help files by default (#26347)
This commit is contained in:
parent
0d885247b0
commit
988b472d90
@ -269,6 +269,7 @@ The following changes to existing APIs or features add new behavior.
|
||||
vim.g.query_lint_on = {}
|
||||
<
|
||||
• Enabled treesitter highlighting for treesitter query files.
|
||||
• Enabled treesitter highlighting for help files.
|
||||
|
||||
• The `workspace/didChangeWatchedFiles` LSP client capability is now enabled
|
||||
by default.
|
||||
|
@ -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
|
||||
|
@ -120,6 +120,8 @@ lang mess C
|
||||
|
||||
" Nvim: append runtime from build dir, which contains the generated doc/tags.
|
||||
let &runtimepath ..= ',' .. expand($BUILD_DIR) .. '/runtime/'
|
||||
" Nvim: append libdir from build dir, which contains the bundled TS parsers.
|
||||
let &runtimepath ..= ',' .. expand($BUILD_DIR) .. '/lib/nvim/'
|
||||
|
||||
let s:t_bold = &t_md
|
||||
let s:t_normal = &t_me
|
||||
|
Loading…
Reference in New Issue
Block a user