Module Merlin_kernel.MconfigSource

OCaml commandline parsing

Sourcetype ocaml = {
  1. include_dirs : string list;
  2. no_std_include : bool;
  3. unsafe : bool;
  4. classic : bool;
  5. principal : bool;
  6. real_paths : bool;
  7. threads : [ `None | `Threads | `Vmthreads ];
  8. recursive_types : bool;
  9. strict_sequence : bool;
  10. applicative_functors : bool;
  11. nopervasives : bool;
  12. strict_formats : bool;
  13. open_modules : string list;
  14. ppx : string Merlin_utils.Std.with_workdir list;
  15. pp : string Merlin_utils.Std.with_workdir option;
  16. warnings : Ocaml_utils.Warnings.state;
}

Merlin high-level settings

Sourcetype merlin = {
  1. build_path : string list;
  2. source_path : string list;
  3. cmi_path : string list;
  4. cmt_path : string list;
  5. extensions : string list;
  6. suffixes : (string * string) list;
  7. stdlib : string option;
  8. source_root : string option;
  9. unit_name : string option;
  10. wrapping_prefix : string option;
  11. reader : string list;
  12. protocol : [ `Json | `Sexp ];
  13. log_file : string option;
  14. log_sections : string list;
  15. config_path : string option;
  16. use_ppx_cache : bool;
  17. exclude_query_dir : bool;
  18. flags_to_apply : string list Merlin_utils.Std.with_workdir list;
  19. flags_applied : string list Merlin_utils.Std.with_workdir list;
  20. failures : string list;
  21. extension_to_reader : (string * string) list;
  22. cache_lifespan : int;
}
Sourceval dump_merlin : merlin -> Merlin_utils.Std.json

Some flags affecting queries

Sourcemodule Verbosity : sig ... end
Sourcetype query = {
  1. filename : string;
  2. directory : string;
  3. printer_width : int;
  4. verbosity : Verbosity.t;
}

Main configuration

Sourcetype t = {
  1. ocaml : ocaml;
  2. merlin : merlin;
  3. query : query;
}
Sourceval initial : t
Sourceval merge_merlin_config : Mconfig_dot.config -> merlin -> failures:string list -> config_path:string -> merlin
Sourceval get_external_config : string -> t -> t
Sourceval normalize : t -> t
Sourceval is_normalized : t -> bool
Sourceval parse_arguments : wd:string -> warning:(string -> unit) -> 'a Merlin_utils.Marg.spec list -> string list -> t -> 'a -> t * 'a
Sourceval flags_for_completion : unit -> string list
Sourceval document_arguments : out_channel -> unit

Computing project paths

Sourceval source_path : t -> string list
Sourceval build_path : t -> string list
Sourceval cmt_path : t -> string list
Sourceval global_modules : ?include_current:bool -> t -> string list

Accessors for other information

Sourceval filename : t -> string
Sourceval unitname : t -> string