diff options
| author | James McCoy <jamessan@jamessan.com> | 2022-01-17 13:37:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-17 13:37:28 -0500 |
| commit | 70db972e5fbcab39946ad8ac05472a693cf65b68 (patch) | |
| tree | 4628cf3b604fdfaaca21efa5ba2da6a61610e620 /runtime/doc/lua.txt | |
| parent | 64b906a3face0d4ee8653153aa74f40211ea9e9f (diff) | |
| parent | 2c94b75eac07a3b7fc5e1ee536c9f7f0b3fd31f6 (diff) | |
| download | rneovim-70db972e5fbcab39946ad8ac05472a693cf65b68.tar.gz rneovim-70db972e5fbcab39946ad8ac05472a693cf65b68.tar.bz2 rneovim-70db972e5fbcab39946ad8ac05472a693cf65b68.zip | |
Merge pull request #16813 from neovim/marvim/api-doc-update/master
docs: regenerate
Diffstat (limited to 'runtime/doc/lua.txt')
| -rw-r--r-- | runtime/doc/lua.txt | 9 |
1 files changed, 9 insertions, 0 deletions
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* |