mirror of
https://github.com/Kyren223/eko.git
synced 2025-10-01 01:08:32 +00:00
18 lines
315 B
Go
18 lines
315 B
Go
package viminput
|
|
|
|
import (
|
|
"strconv"
|
|
|
|
"github.com/charmbracelet/lipgloss"
|
|
)
|
|
|
|
func LineNumberDecoration(style lipgloss.Style) LineDecoration {
|
|
return func(lnum int, m Model) string {
|
|
return style.Render(strconv.FormatInt(int64(lnum), 10))
|
|
}
|
|
}
|
|
|
|
func EmptyLineDecoration(lnum int, m Model) string {
|
|
return ""
|
|
}
|