Skip to content

Commit 29f74d9

Browse files
authoredJul 30, 2024··
lsp: Add Neovim as known client identifier (#951)
Fixes #950 Signed-off-by: Charlie Egan <charlie@styra.com>
1 parent 8a8b8ad commit 29f74d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎internal/lsp/clients/clients.go

+9
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ const (
99
IdentifierVSCode
1010
IdentifierGoTest
1111
IdentifierZed
12+
IdentifierNeovim
1213
)
1314

15+
// DetermineClientIdentifier is used to determine the Regal client identifier
16+
// based on the client name.
17+
// Clients with identifiers here should be featured on the 'Editor Support'
18+
// page in the documentation (https://docs.styra.com/regal/editor-support).
1419
func DetermineClientIdentifier(clientName string) Identifier {
1520
switch clientName {
1621
case "go test":
@@ -19,6 +24,10 @@ func DetermineClientIdentifier(clientName string) Identifier {
1924
return IdentifierVSCode
2025
case "Zed":
2126
return IdentifierZed
27+
case "Neovim":
28+
// 'Neovim' is sent as the client identifier when using the
29+
// nvim-lspconfig plugin.
30+
return IdentifierNeovim
2231
}
2332

2433
return IdentifierGeneric

0 commit comments

Comments
 (0)
Please sign in to comment.