neovim/runtime
Gregory Anders f3ce06cfa1
refactor(filetype)!: allow vim.filetype.match to use different strategies (#18895)
This enables vim.filetype.match to match based on a buffer (most
accurate) or simply a filename or file contents, which are less accurate
but may still be useful for some scenarios.

When matching based on a buffer, the buffer's name and contents are both
used to do full filetype matching. When using a filename, if the file
exists the file is loaded into a buffer and full filetype detection is
performed. If the file does not exist then filetype matching is only
performed against the filename itself. Content-based matching does the
equivalent of scripts.vim, and matches solely based on file contents
without any information from the name of the file itself (e.g. for
shebangs).

BREAKING CHANGE: use `vim.filetype.match({buf = bufnr})` instead 
of `vim.filetype.match(name, bufnr)`
2022-06-26 18:41:20 +02:00
..
autoload refactor(provider): use list comprehension #19027 2022-06-20 06:17:00 -07:00
colors vim-patch:8c1b8cb2e0b5 (#18966) 2022-06-15 09:20:32 +02:00
compiler vim-patch:d592deb33652 (#19002) 2022-06-17 20:38:21 +02:00
doc refactor(filetype)!: allow vim.filetype.match to use different strategies (#18895) 2022-06-26 18:41:20 +02:00
ftplugin vim-patch:d592deb33652 (#19002) 2022-06-17 20:38:21 +02:00
indent vim-patch:a57b553b4328 (#19076) 2022-06-24 14:45:07 +02:00
keymap
lua refactor(filetype)!: allow vim.filetype.match to use different strategies (#18895) 2022-06-26 18:41:20 +02:00
macros
pack/dist/opt vim-patch:e1dc76fbf333 (#19092) 2022-06-25 21:56:51 +02:00
plugin fix(startup): nvim with --clean should not load user rplugins 2022-06-04 18:37:54 +02:00
print
queries/c
spell
syntax vim-patch:8cc5b559f700 (#19066) 2022-06-23 15:57:51 +02:00
tools
tutor
bugreport.vim
CMakeLists.txt
delmenu.vim
filetype.lua refactor(filetype)!: allow vim.filetype.match to use different strategies (#18895) 2022-06-26 18:41:20 +02:00
filetype.vim vim-patch:partial:cfa8f9a3f285 (#18858) 2022-06-04 10:53:42 +02:00
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim
menu.vim
mswin.vim
nvim.appdata.xml
nvim.desktop build(nvim.desktop): central Kurdish translation #17065 2022-05-13 11:58:22 -07:00
nvim.png
optwin.vim docs: fix typos (#18269) 2022-06-04 11:56:36 +08:00
scripts.vim vim-patch:8.2.5110: icon filetype not recognized from the first line (#18987) 2022-06-16 15:53:38 +02:00
synmenu.vim