blob: 82e51f1a7a2f1442d04bfb2ca510bfa81569f8d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package viminput
import (
"strconv"
"github.com/charmbracelet/lipgloss"
)
func LineNumberDecoration(style lipgloss.Style) LineDecoration {
return func(lnum int, line string, cursorLnum int) string {
return style.Render(strconv.FormatInt(int64(lnum), 10))
}
}
func EmptyLineDecoration(lnum int, line string, cursorLnum int) string {
return ""
}
|