Module Merlin_kernel.Mconfig
Source
OCaml commandline parsing
Sourcetype ocaml = {
include_dirs : string list;
no_std_include : bool;
unsafe : bool;
classic : bool;
principal : bool;
real_paths : bool;
threads : [ `None | `Threads | `Vmthreads ];
recursive_types : bool;
strict_sequence : bool;
applicative_functors : bool;
nopervasives : bool;
strict_formats : bool;
open_modules : string list;
ppx : string Merlin_utils.Std.with_workdir list;
pp : string Merlin_utils.Std.with_workdir option;
warnings : Ocaml_utils.Warnings.state;
}
Merlin high-level settings
Sourcetype merlin = {
build_path : string list;
source_path : string list;
cmi_path : string list;
cmt_path : string list;
extensions : string list;
suffixes : (string * string) list;
stdlib : string option;
source_root : string option;
unit_name : string option;
wrapping_prefix : string option;
reader : string list;
protocol : [ `Json | `Sexp ];
log_file : string option;
log_sections : string list;
config_path : string option;
use_ppx_cache : bool;
exclude_query_dir : bool;
flags_to_apply : string list Merlin_utils.Std.with_workdir list;
flags_applied : string list Merlin_utils.Std.with_workdir list;
failures : string list;
extension_to_reader : (string * string) list;
cache_lifespan : int;
}
Some flags affecting queries
Sourcetype query = {
filename : string;
directory : string;
printer_width : int;
verbosity : Verbosity.t;
}
Main configuration
Sourceval get_external_config : string -> t -> t
Sourceval is_normalized : t -> bool
Sourceval flags_for_completion : unit -> string list
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