mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
d0d4160dd1
- Add runtime/lua/vim/vimhelp.lua, which is a translation of Vim's runtime/import/dist/vimhelp.vim. - Unlike Vim, run the highlighting from an ftplugin file instead of a syntax file, so that it is run even if using treesitter.
4 lines
136 B
Lua
4 lines
136 B
Lua
if vim.endswith(vim.fs.normalize(vim.api.nvim_buf_get_name(0)), '/doc/syntax.txt') then
|
|
require('vim.vimhelp').highlight_groups()
|
|
end
|