mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
58323b1fe2
Many filetypes from filetype.vim set buffer-local variables, meaning vim.filetype.match cannot be used without side effects. Instead of setting these buffer-local variables in the filetype detection functions themselves, have vim.filetype.match return an optional function value that, when called, sets these variables. This allows vim.filetype.match to work without side effects. |
||
---|---|---|
.. | ||
vim | ||
health.lua | ||
man.lua |