nvim_buf_set_lines does not allow newline characters in the individual lines. This change replaces all newline characters in each line with a space character. As far as I know, this only affects the TexLab lsp, since it reports the whole caption of figures, tables, etc. including potential newline characters. There is a case to be made to move this to parser.get_lines. This fixes #184.
nvim_buf_set_lines
does not allow newline characters in the individual lines. This change replaces all newline characters in each line with a space character. As far as I know, this only affects the TexLab lsp, since it reports the whole caption of figures, tables, etc. including potential newline characters. There is a case to be made to move this toparser.get_lines
. This fixes #184.