Skip to content

Commit

Permalink
Update filetype.{txt,jax}
Browse files Browse the repository at this point in the history
  • Loading branch information
h-east committed Dec 4, 2024
1 parent 69ef9d2 commit f47eaa2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 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: 2024 Nov 14
*filetype.txt* For Vim バージョン 9.1. Last change: 2024 Dec 03


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -721,7 +721,6 @@ Markdown コメントの認識を有効にするには、`8.2.1397` 以降のバ
は "javaformat.vim" を手動で再読込みすることを忘れないこと: >
runtime autoload/javaformat.vim
<

JSON-FORMAT *ft-json-plugin*

JSON ファイルタイプは、JSON のフォーマッティング (|gq| を使用) に 'formatexpr'
Expand All @@ -733,6 +732,11 @@ JSON ファイルタイプは、JSON のフォーマッティング (|gq| を使
import autoload 'dist/json.vim'
setl formatexpr=json.FormatExpr()
LUA *ft-lua-plugin*

|fold-expr| を使用して lua 関数の折り畳みを有効にするには: >
let g:lua_folding = 1
MAIL *ft-mail-plugin*

Expand Down
8 changes: 6 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: 2024 Nov 14
*filetype.txt* For Vim version 9.1. Last change: 2024 Dec 03


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -733,7 +733,6 @@ To enable the recognition of Markdown comments each time after removing
re-source "javaformat.vim" for Vim versions greater than `8.2.1397`: >
runtime autoload/javaformat.vim
<

JSON-FORMAT *ft-json-plugin*

JSON filetype can be extended to use 'formatexpr' and "json.FormatExpr()"
Expand All @@ -745,6 +744,11 @@ Add following lines to $HOME/.vim/ftplugin/json.vim: >
import autoload 'dist/json.vim'
setl formatexpr=json.FormatExpr()
LUA *ft-lua-plugin*

You can enable folding of lua functions using |fold-expr| by: >
let g:lua_folding = 1
MAIL *ft-mail-plugin*

Expand Down

0 comments on commit f47eaa2

Please sign in to comment.