From 2c94b75eac07a3b7fc5e1ee536c9f7f0b3fd31f6 Mon Sep 17 00:00:00 2001 From: marvim Date: Mon, 17 Jan 2022 18:28:23 +0000 Subject: docs: regenerate [skip ci] --- runtime/doc/lua.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/doc/lua.txt') diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 80c1f58323..3d4abed550 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -1872,6 +1872,15 @@ add({filetypes}) *vim.filetype.add()* {filetypes} table A table containing new filetype maps (see example). +match({name}, {bufnr}) *vim.filetype.match()* + Set the filetype for the given buffer from a file name. + + Parameters: ~ + {name} string File name (can be an absolute or relative + path) + {bufnr} number|nil The buffer to set the filetype for. + Defaults to the current buffer. + ============================================================================== Lua module: keymap *lua-keymap* -- cgit