aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-11-12 21:54:06 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-11-13 08:24:14 +0100
commit096cb572af4b00ee2684d0c05b4689c4f4bef94e (patch)
tree7e50450d3e2b31e2390c825640194342c5770d09 /runtime/doc
parent17e00d0cc63cf2a42a66b03f28bd567f11998c24 (diff)
downloadrneovim-096cb572af4b00ee2684d0c05b4689c4f4bef94e.tar.gz
rneovim-096cb572af4b00ee2684d0c05b4689c4f4bef94e.tar.bz2
rneovim-096cb572af4b00ee2684d0c05b4689c4f4bef94e.zip
vim-patch:5ca8f22: runtime(idris2): include filetype,indent+syntax plugins for (L)Idris2 + ipkg
closes: vim/vim#15993 https://github.com/vim/vim/commit/5ca8f223f03dbd85f5e06c8e1d500c65f311eaf1 Co-authored-by: Serhii Khoma <srghma@gmail.com> Co-authored-by: Christian Clason <ch.clason+github@icloud.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/filetype.txt13
-rw-r--r--runtime/doc/indent.txt32
2 files changed, 45 insertions, 0 deletions
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt
index 20256e174c..279d00dd98 100644
--- a/runtime/doc/filetype.txt
+++ b/runtime/doc/filetype.txt
@@ -630,6 +630,19 @@ HARE *ft-hare*
Since the text for this plugin is rather long it has been put in a separate
file: |ft_hare.txt|.
+IDRIS2 *ft-idris2-plugin*
+
+By default the following options are set: >
+
+ setlocal shiftwidth=2 tabstop=2 expandtab
+ setlocal comments=s1:{-,mb:-,ex:-},:\|\|\|,:--
+ setlocal commentstring=--\ %s
+ setlocal wildignore+=*.ibc
+
+To use tabs instead of spaces for indentation, set the following variable
+in your vimrc: >
+
+ let g:idris2#allow_tabchar = 1
JAVA *ft-java-plugin*
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt
index f97ae24068..49d770124a 100644
--- a/runtime/doc/indent.txt
+++ b/runtime/doc/indent.txt
@@ -809,6 +809,38 @@ Detail:
: GetCSSIndent() else
<!-- --> : -1
+IDRIS2 *ft-idris2-indent*
+
+Idris 2 indentation can be configured with several variables that control the
+indentation level for different language constructs:
+
+The "g:idris2_indent_if" variable controls the indentation of `then` and `else`
+blocks after `if` statements. Defaults to 3.
+
+The "g:idris2_indent_case" variable controls the indentation of patterns in
+`case` expressions. Defaults to 5.
+
+The "g:idris2_indent_let" variable controls the indentation after `let`
+bindings. Defaults to 4.
+
+The "g:idris2_indent_rewrite" variable controls the indentation after `rewrite`
+expressions. Defaults to 8.
+
+The "g:idris2_indent_where" variable controls the indentation of `where`
+blocks. Defaults to 6.
+
+The "g:idris2_indent_do" variable controls the indentation in `do` blocks.
+Defaults to 3.
+
+Example configuration: >
+
+ let g:idris2_indent_if = 2
+ let g:idris2_indent_case = 4
+ let g:idris2_indent_let = 4
+ let g:idris2_indent_rewrite = 8
+ let g:idris2_indent_where = 6
+ let g:idris2_indent_do = 3
+<
MATLAB *ft-matlab-indent* *matlab-indent* *matlab-indenting*