AutoYADM commit: 2025-06-09 17:37:38
This commit is contained in:
parent
1f9b5fceea
commit
aa7cbf8a12
2 changed files with 14 additions and 0 deletions
|
@ -209,3 +209,7 @@ hook -group lsp-filetype-typst global BufSetOption filetype=typst %{
|
||||||
# lsp-menu %arg{@}
|
# lsp-menu %arg{@}
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
# enable inline-diagnostics if the cursor is on a diagnostic
|
||||||
|
define-command lsp-check-inline-diagnostic %{
|
||||||
|
# we write a python script for this
|
||||||
|
}
|
||||||
|
|
10
.config/kak/scripts/lsp-diags.py
Executable file
10
.config/kak/scripts/lsp-diags.py
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
|
||||||
|
def parse_specs(data: str):
|
||||||
|
diagnostics = []
|
||||||
|
for entry in data.strip().split():
|
||||||
|
if not entry or len(entry) < 9:
|
||||||
|
continue
|
||||||
|
range_part, _ = entry.split("|", 1)
|
||||||
|
start_str, end_str = range_part.split(",")
|
Loading…
Add table
Add a link
Reference in a new issue