mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
feat: Add more common utils
This commit is contained in:
parent
3a13209648
commit
b9f6ed8758
5
common/lsp.go
Normal file
5
common/lsp.go
Normal file
@ -0,0 +1,5 @@
|
||||
package common
|
||||
|
||||
func CursorToCharacterIndex(cursor uint32) uint32 {
|
||||
return max(0, cursor-1)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user