aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-08-24 21:39:57 -0500
committerGitHub <noreply@github.com>2023-08-24 21:39:57 -0500
commit0b0d912763890652c20d219ad92ab8d91195ca02 (patch)
treee0d30128164df9d8216c8c6a2610ef178c767000 /runtime/doc
parent5b4f1f56c350995521aafa60419b93708de80fd9 (diff)
parentaf38b46a2574f59358bc3bf54dd7c34b5c0f396d (diff)
downloadrneovim-0b0d912763890652c20d219ad92ab8d91195ca02.tar.gz
rneovim-0b0d912763890652c20d219ad92ab8d91195ca02.tar.bz2
rneovim-0b0d912763890652c20d219ad92ab8d91195ca02.zip
Merge pull request #24864 from gpanders/filetype-on-detect-order
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 08022c3ed6..b4ca88251e 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -2600,7 +2600,8 @@ vim.filetype.add({filetypes}) *vim.filetype.add()*
matched pattern, if any) and should return a string that will be used as
the buffer's filetype. Optionally, the function can return a second
function value which, when called, modifies the state of the buffer. This
- can be used to, for example, set filetype-specific buffer variables.
+ can be used to, for example, set filetype-specific buffer variables. This
+ function will be called by Nvim before setting the buffer's filetype.
Filename patterns can specify an optional priority to resolve cases when a
file path matches multiple patterns. Higher priorities are matched first.