Files
neovim/runtime/doc
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
..
2022-04-19 15:14:17 +02:00
2022-06-20 18:47:30 +02:00
2022-06-17 20:38:21 +02:00
2022-02-27 11:56:30 +01:00
2022-04-19 15:14:17 +02:00
2022-05-22 21:20:18 -06:00
2022-04-27 17:48:35 +02:00
2022-02-27 11:56:30 +01:00
2022-03-20 10:48:10 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-05-22 21:20:18 -06:00
2022-01-11 14:14:17 +01:00
2022-02-27 11:56:30 +01:00
2022-06-14 08:52:04 +02:00
2022-01-04 11:07:40 -07:00
2022-06-15 08:49:54 +08:00
2022-06-20 18:47:30 +02:00
2022-01-11 14:14:17 +01:00
2022-03-25 19:57:59 +01:00
2022-04-19 15:14:17 +02:00
2022-01-29 23:15:22 +00:00
2022-06-17 20:38:21 +02:00
2022-02-27 11:56:30 +01:00
2022-03-17 13:21:24 +08:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-03-20 10:48:10 +01:00
2022-01-29 23:15:22 +00:00
2022-02-27 11:56:30 +01:00
2022-05-03 22:26:02 +08:00
2022-06-04 11:56:36 +08:00
2022-03-20 10:48:10 +01:00
2022-06-23 15:57:51 +02:00
2022-06-23 15:57:51 +02:00
2022-06-25 21:56:51 +02:00
2022-06-20 18:47:30 +02:00