<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/plugin/lsp/utils_spec.lua, branch fix_repeatcmdline</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>fix(lsp): account for border height in max floating popup height (#25539)</title>
<updated>2023-10-08T08:09:25+00:00</updated>
<author>
<name>LW</name>
<email>git@llllvvuu.dev</email>
</author>
<published>2023-10-08T08:09:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=9abced6ad95f6300ae80cd8b8aa124ebcf511b50'/>
<id>9abced6ad95f6300ae80cd8b8aa124ebcf511b50</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(lsp): add normalize_markdown tests</title>
<updated>2023-09-20T06:00:52+00:00</updated>
<author>
<name>Maria José Solano</name>
<email>majosolano99@gmail.com</email>
</author>
<published>2023-09-20T04:30:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=b2265bb72c268c95180dc92c129be11fd87f995d'/>
<id>b2265bb72c268c95180dc92c129be11fd87f995d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): improve control over placement of floating windows (#24494)</title>
<updated>2023-09-10T08:02:23+00:00</updated>
<author>
<name>Grace Petryk</name>
<email>gracepetryk99@gmail.com</email>
</author>
<published>2023-09-10T08:02:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5e3cf9fb4bc7f236c858f609ca83c57fb1779ab0'/>
<id>5e3cf9fb4bc7f236c858f609ca83c57fb1779ab0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): markdown code fence should allow space before info string #24364</title>
<updated>2023-07-16T10:11:45+00:00</updated>
<author>
<name>Mike</name>
<email>10135646+mikesmithgh@users.noreply.github.com</email>
</author>
<published>2023-07-16T10:11:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=251ca45ac94851c896db0d27685622fb78a73b3e'/>
<id>251ca45ac94851c896db0d27685622fb78a73b3e</id>
<content type='text'>
Problem:
Bash language server returns "hover" markdown content that starts with
a code fence and info string of `man` preceded by whitespace, which Nvim
does not render properly.

See https://github.com/bash-lsp/bash-language-server/blob/0ee73c53cebdc18311d4a4ad9367185ea4d98a03/server/src/server.ts#L821C15-L821C15
```typescript
function getMarkdownContent(documentation: string, language?: string): LSP.MarkupContent {
  return {
    value: language
      ? // eslint-disable-next-line prefer-template
        ['``` ' + language, documentation, '```'].join('\n')
      : documentation,
    kind: LSP.MarkupKind.Markdown,
  }
}
```

For example,
```
    ``` man
    NAME
       git - the stupid content tracker
    ```
```

If I remove the white space, then it is properly formatted. 
```    
    ```man instead of ``` man
```

Per CommonMark Spec https://spec.commonmark.org/0.30/#info-string
whitespace is allowed before and after the `info string` which
identifies the language in a codeblock.
&gt; The line with the opening code fence may optionally contain some text
&gt; following the code fence; this is trimmed of leading and trailing
&gt; spaces or tabs and called the [info
&gt; string](https://spec.commonmark.org/0.30/#info-string). If the [info
&gt; string](https://spec.commonmark.org/0.30/#info-string) comes after
&gt; a backtick fence, it may not contain any backtick characters. (The
&gt; reason for this restriction is that otherwise some inline code would
&gt; be incorrectly interpreted as the beginning of a fenced code block.)

 Solution:
 Adjust stylize_markdown() to allow whitespace before codeblock info.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
Bash language server returns "hover" markdown content that starts with
a code fence and info string of `man` preceded by whitespace, which Nvim
does not render properly.

See https://github.com/bash-lsp/bash-language-server/blob/0ee73c53cebdc18311d4a4ad9367185ea4d98a03/server/src/server.ts#L821C15-L821C15
```typescript
function getMarkdownContent(documentation: string, language?: string): LSP.MarkupContent {
  return {
    value: language
      ? // eslint-disable-next-line prefer-template
        ['``` ' + language, documentation, '```'].join('\n')
      : documentation,
    kind: LSP.MarkupKind.Markdown,
  }
}
```

For example,
```
    ``` man
    NAME
       git - the stupid content tracker
    ```
```

If I remove the white space, then it is properly formatted. 
```    
    ```man instead of ``` man
```

Per CommonMark Spec https://spec.commonmark.org/0.30/#info-string
whitespace is allowed before and after the `info string` which
identifies the language in a codeblock.
&gt; The line with the opening code fence may optionally contain some text
&gt; following the code fence; this is trimmed of leading and trailing
&gt; spaces or tabs and called the [info
&gt; string](https://spec.commonmark.org/0.30/#info-string). If the [info
&gt; string](https://spec.commonmark.org/0.30/#info-string) comes after
&gt; a backtick fence, it may not contain any backtick characters. (The
&gt; reason for this restriction is that otherwise some inline code would
&gt; be incorrectly interpreted as the beginning of a fenced code block.)

 Solution:
 Adjust stylize_markdown() to allow whitespace before codeblock info.</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): render markdown in docs hover #22766</title>
<updated>2023-03-25T16:46:07+00:00</updated>
<author>
<name>Roberto Pommella Alegro</name>
<email>robertoaall@gmail.com</email>
</author>
<published>2023-03-25T16:46:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=257d894d75bc583bb16f4dbe441907eb273d20ad'/>
<id>257d894d75bc583bb16f4dbe441907eb273d20ad</id>
<content type='text'>
Problem:
LSP docs hover (textDocument/hover) doesn't handle HTML escape seqs in markdown.

Solution:
Convert common HTML escape seqs to a nicer form, to display in the float.
closees #22757

Signed-off-by: Kasama &lt;robertoaall@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
LSP docs hover (textDocument/hover) doesn't handle HTML escape seqs in markdown.

Solution:
Convert common HTML escape seqs to a nicer form, to display in the float.
closees #22757

Signed-off-by: Kasama &lt;robertoaall@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
