Use a single function
sem_tables() to display nice looking output from a lavaan model.
The package contains an RMarkdwon template that makes it very easy to run CFA and SEM analyses in R and create nice looking output.
Once you install the package, you will be able to access the R Markdown template by going to:
File -> New File -> R Markdown… -> From Template -> CFA/SEM (lavaan)