mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
feat(runtime)!: remove filetype.vim (#20428)
Made obsolete by now graduated `filetype.lua` (enabled by default). Note that changes or additions to the filetype detection still need to be made through a PR to vim/vim as we port the _logic_ as well as tests.
This commit is contained in:
@@ -2285,8 +2285,6 @@ end
|
||||
---
|
||||
--- See $VIMRUNTIME/lua/vim/filetype.lua for more examples.
|
||||
---
|
||||
--- Note that Lua filetype detection is disabled when |g:do_legacy_filetype| is set.
|
||||
---
|
||||
--- Example:
|
||||
--- <pre>
|
||||
--- vim.filetype.add({
|
||||
@@ -2323,7 +2321,7 @@ end
|
||||
--- })
|
||||
--- </pre>
|
||||
---
|
||||
--- To add a fallback match on contents (see |new-filetype-scripts|), use
|
||||
--- To add a fallback match on contents, use
|
||||
--- <pre>
|
||||
--- vim.filetype.add {
|
||||
--- pattern = {
|
||||
|
Reference in New Issue
Block a user