Skip to content

Commit 6037763

Browse files
authored
Fix nim version, colorises lsp notifications (#75)
1 parent 3f5351c commit 6037763

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nimvscode.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bin = @["nimvscode"]
1111

1212
# Deps
1313

14-
requires "nim >= 2.0.0"
14+
requires "nim >= 2.0.0 & <= 2.1"
1515

1616
import std/os
1717

src/nimLsp.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ proc newNotificationItem*(notification: Notification): LspItem =
393393
item.command.title = "Show Notification".cstring
394394
item.command.arguments = @[notification.message.toJs()]
395395
item.tooltip = notification.message
396-
item.iconPath = vscode.themeIcon(notification.kind, vscode.themeColor("notificationsInfoIcon.foreground"))
396+
let color = fmt"notifications{capitalizeAscii($notification.kind)}Icon.foreground".cstring
397+
item.iconPath = vscode.themeIcon(notification.kind, vscode.themeColor(color))
397398
cast[LspItem](item)
398399

399400
proc isNotificationItem(item: LspItem): bool =

0 commit comments

Comments
 (0)