In order to switch off ligatures for a whole document using LuaLaTeX, I put the following lines into the preamble:
\usepackage{fontspec}
\defaultfontfeatures{Ligatures={NoRequired, NoCommon, NoContextual}}
However, the output document still shows ligatures. I also tried this command:
\usepackage{fontspec}
\defaultfontfeatures{
Ligatures={-Required, +NoRequired, -Common, +NoCommon, -Contextual, +NoContextual,
-TeX, -Rare, -Historic}}
but with the same result.
Any ideas why switching off ligatures is not working?
EDIT: The anser to my question is hidden in one of the comments on Patrick's answer: It is necessary to explicitly select a font via one of the fontspec commands afterwards, in order to have the Ligaturessetting take effect. For example:
\usepackage{fontspec}
\defaultfontfeatures{Ligatures={NoRequired, NoCommon, NoContextual}}
\setmainfont{Latin Modern Roman}
