summaryrefslogtreecommitdiff
path: root/internal/client/ui/viminput/linedecorations.go
blob: 631c0ceaa97976c1d6f231974cecbe041c101022 (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, m Model) string {
		return style.Render(strconv.FormatInt(int64(lnum), 10))
	}
}

func EmptyLineDecoration(lnum int, m Model) string {
	return ""
}