Nvim :help
pages, generated
from source
using the tree-sitter-vimdoc parser.
ft-ada-syntax
> let g:ada_standard_types = 1To disable them use ":unlet". Example:
> unlet g:ada_standard_typesYou can just use ":" and type these into the command line to set these temporarily before loading an Ada file. You can make these option settings permanent by adding the "let" command(s), without a colon, to your init.vim file.
ft-ada-omni
gnat-xref
gnat xref -v -aI../Include *.ad?
won't work - use "cd ../Include" and
then gnat xref -v *.ad?
4) Project manager support is completely broken - don't even try "gnat xref
-Padacl.gpr".
5) Vim is faster when the tags file is sorted - use "sort --unique
--ignore-case --output=tags tags" .
6) Remember to insert "!_TAG_FILE_SORTED 2 %sort ui" as first line to mark
the file assorted.ada-ctags
ada-compiler
compiler-gnat
<F7>
and then
immediately shows the result. You can set the project file to be used by
setting:
> call g:gnat.Set_Project_File ('my_project.gpr')Setting a project file will also create a Vim session (views-sessions) so - like with the GPS - opened files, window positions etc. will be remembered separately for all projects.
gnat_members
g:gnat.Make()
g:gnat.Make()
Calls g:gnat.Make_Command and displays the result inside a
quickfix window.g:gnat.Pretty()
g:gnat.Pretty()
Calls g:gnat.Pretty_Programg:gnat.Find()
g:gnat.Find()
Calls g:gnat.Find_Programg:gnat.Tags()
g:gnat.Tags()
Calls g:gnat.Tags_Commandg:gnat.Set_Project_File()
g:gnat.Set_Project_File([{file}
])
Set gnat project file and load associated session. An open
project will be closed and the session written. If called
without file name the file selector opens for selection of a
project file. If called with an empty string then the project
and associated session are closed.g:gnat.Project_File
g:gnat.Project_File string
Current project file.g:gnat.Pretty_Program
g:gnat.Pretty_Program string
External command used for g:gnat.Pretty()g:gnat.Find_Program
g:gnat.Find_Program string
External command used for g:gnat.Find()g:gnat.Tags_Command
g:gnat.Tags_Command string
External command used for g:gnat.Tags()g:gnat.Error_Format
g:gnat.Error_Format string
Error format ('errorformat')<F7>
will
compile the current unit.decada_members
g:decada.Make()
g:decada.Make() function
Calls g:decada.Make_Command and displays the result inside a
quickfix window.g:decada.Unit_Name()
g:decada.Unit_Name() function
Get the Unit name for the current file.g:decada.Make_Command
g:decada.Make_Command string
External command used for g:decada.Make() ('makeprg').g:decada.Error_Format
g:decada.Error_Format string
Error format ('errorformat').ada-reference
ft-ada-options
g:ada_standard_types
g:ada_standard_types bool (true when exists)
Highlight types in package Standard (e.g., "Float").g:ada_space_errors
g:ada_no_trail_space_error
g:ada_no_tab_space_error
g:ada_all_tab_usage
g:ada_space_errors bool (true when exists)
Highlight extraneous errors in spaces ...
g:ada_no_trail_space_error
g:ada_line_errors
g:ada_line_errors bool (true when exists)
Highlight lines which are too long.Note: This highlighting
option is quite CPU intensive.g:ada_rainbow_color
g:ada_rainbow_color bool (true when exists)
Use rainbow colours for '(' and ')'. You need the
rainbow_parenthesis for this to work.g:ada_folding
g:ada_folding set ("sigpft")
Use folding for Ada sources.
's': activate syntax folding on load
'p': fold packages
'f': fold functions and procedures
't': fold types
'c': fold conditionals
'g': activate gnat pretty print folding on load
'i': lone "is" folded with line above
'b': lone "begin" folded with line above
'p': lone "private" folded with line above
'x': lone "exception" folded with line above
'i': activate indent folding on loadg:ada_abbrev
g:ada_abbrev bool (true when exists)
Add some abbreviations. This feature is more or less superseded
by the various completion methods.g:ada_withuse_ordinary
g:ada_withuse_ordinary bool (true when exists)
Show "with" and "use" as ordinary keywords (when used to
reference other compilation units they're normally highlighted
specially).g:ada_begin_preproc
g:ada_begin_preproc bool (true when exists)
Show all begin-like keywords using the colouring of C
preprocessor commands.g:ada_omni_with_keywords
g:ada_omni_with_keywords
Add Keywords, Pragmas, Attributes to omni-completions
(compl-omni).Note: You can always complete then with user
completion (i_CTRL-X_CTRL-U).g:ada_extended_tagging
g:ada_extended_tagging enum ("jump", "list")
use extended tagging, two options are available
"jump": use tjump to jump.
"list": add tags quick fix list.
Normal tagging does not support function or operator
overloading as these features are not available in C and
tagging was originally developed for C.g:ada_extended_completion
g:ada_extended_completion
Uses extended completion for <C-N>
and <C-R>
completions
(i_CTRL-N). In this mode the '.' is used as part of the
identifier so that 'Object.Method' or 'Package.Procedure' are
completed together.g:ada_gnat_extensions
g:ada_gnat_extensions bool (true when exists)
Support GNAT extensions.g:ada_with_gnat_project_files
g:ada_with_gnat_project_files bool (true when exists)
Add gnat project file keywords and Attributes.g:ada_default_compiler
g:ada_default_compiler string
set default compiler. Currently supported are "gnat" and
"decada".ft-ada-commands
:AdaRainbow
Toggles rainbow colour (g:ada_rainbow_color) mode for
'(' and ')'.:AdaLines
Toggles line error (g:ada_line_errors) display.:AdaSpaces
Toggles space error (g:ada_space_errors) display.:AdaTagDir
Creates tags file for the directory of the current file.:AdaTagFile
Creates tags file for the current file.:AdaTypes
Toggles standard types (g:ada_standard_types) colour.:GnatFind
Calls g:gnat.Find():GnatPretty
Calls g:gnat.Pretty():GnatTags
Calls g:gnat.Tags()ft-ada-variables
g:gnat
g:gnat object
Control object which manages GNAT compiles. The object
is created when the first Ada source code is loaded provided
that g:ada_default_compiler is set to "gnat". See
gnat_members for details.g:decada
g:decada object
Control object which manages Dec Ada compiles. The object
is created when the first Ada source code is loaded provided
that g:ada_default_compiler is set to "decada". See
decada_members for details.ft-ada-constants
g:ada#WordRegex
g:ada#WordRegex string
Regular expression to search for Ada words.g:ada#DotWordRegex
g:ada#DotWordRegex string
Regular expression to search for Ada words separated by dots.g:ada#Comment
g:ada#Comment string
Regular expression to search for Ada comments.g:ada#Keywords
g:ada#Keywords list of dictionaries
List of keywords, attributes etc. pp. in the format used by
omni completion. See complete-items for details.g:ada#Ctags_Kinds
g:ada#Ctags_Kinds dictionary of lists
Dictionary of the various kinds of items which the Ada support
for Ctags generates.ft-ada-functions
{line}
, {col}
]) ada#Word()
Return full name of Ada entity under the cursor (or at given
line/column), stripping white space/newlines as necessary.{line}
, {col}
]) ada#Listtags()
List all occurrences of the Ada entity under the cursor (or at
given line/column) inside the quick-fix window.{ident}
, {mode}
) ada#Jump_Tag()
List all occurrences of the Ada entity under the cursor (or at
given line/column) in the tag jump list. Mode can either be
"tjump" or "stjump".{option}
) ada#Create_Tags()
Creates tag file using Ctags. The option can either be "file"
for the current file, "dir" for the directory of the current
file or a file name.gnat#Insert_Tags_Header()
Adds the tag file header (!_TAG_) information to the current
file which are missing from the GNAT XREF output.{option}
) ada#Switch_Syntax_Option()
Toggles highlighting options on or off. Used for the Ada menu.gnat#New()
gnat#New ()
Create a new gnat object. See g:gnat for details.ada-extra-plugins