feat: Add more common utils

This commit is contained in:
Myzel394 2024-09-12 23:51:57 +02:00
parent 3a13209648
commit b9f6ed8758
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185

5
common/lsp.go Normal file
View File

@ -0,0 +1,5 @@
package common
func CursorToCharacterIndex(cursor uint32) uint32 {
return max(0, cursor-1)
}