Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update filetype.{txt,jax} #1978

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions doc/filetype.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*filetype.txt* For Vim バージョン 9.1. Last change: 2025 Feb 20
*filetype.txt* For Vim バージョン 9.1. Last change: 2025 Feb 25


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -732,12 +732,21 @@ JSON ファイルタイプは、JSON のフォーマッティング (|gq| を使
import autoload 'dist/json.vim'
setl formatexpr=json.FormatExpr()

LUA *ft-lua-plugin*
LUA *ft-lua-plugin* *g:lua_folding*

|fold-expr| を使用して Lua 関数の折り畳みを有効にするには: >

let g:lua_folding = 1
< *g:lua_version* *g:lua_subversion*
Lua ファイルタイプの 'includeexpr' と |ft-lua-syntax| のハイライトは、グローバ
ル変数 "g:lua_version" と "g:lua_subversion" を使用して、使用する Lua のバー
ジョンを決定する (デフォルトは 5.3)。

例えば、Lua 5.1 を使用するには変数を以下のように設定する: >

let g:lua_version = 5
let g:lua_subversion = 1
<
MAIL *ft-mail-plugin*

オプション:
Expand Down
13 changes: 11 additions & 2 deletions en/filetype.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*filetype.txt* For Vim version 9.1. Last change: 2025 Feb 20
*filetype.txt* For Vim version 9.1. Last change: 2025 Feb 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -744,12 +744,21 @@ Add following lines to $HOME/.vim/ftplugin/json.vim: >
import autoload 'dist/json.vim'
setl formatexpr=json.FormatExpr()

LUA *ft-lua-plugin*
LUA *ft-lua-plugin* *g:lua_folding*

You can enable folding of Lua functions using |fold-expr| by: >

let g:lua_folding = 1
< *g:lua_version* *g:lua_subversion*
Lua filetype's 'includeexpr' and |ft-lua-syntax| highlighting use the global
variables "g:lua_version" and "g:lua_subversion" to determine the version of
Lua to use (5.3 is the default)

For example, to use Lua 5.1, set the variables like this: >

let g:lua_version = 5
let g:lua_subversion = 1
<
MAIL *ft-mail-plugin*

Options:
Expand Down