feat(nvim): relative lines are back, current line hide

This commit is contained in:
Florian Schmitt 2024-04-28 10:51:15 +03:00
parent 9917cf55f8
commit 9bb1566180
2 changed files with 5 additions and 4 deletions

View file

@ -2,8 +2,9 @@
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
local opt = vim.opt
opt.scrolloff = 8
opt.scrolloff = 9
opt.wrap = true
opt.clipboard = "unnamedplus"
opt.list = false
opt.relativenumber = false
opt.relativenumber = true
opt.cursorline = false

View file

@ -94,9 +94,9 @@ return {
layout_strategy = "center",
layout_config = {
prompt_position = "top",
preview_cutoff = 1, -- Preview should always show (unless previewer = false)
preview_cutoff = 5, -- Preview should always show (unless previewer = false)
width = function(_, max_columns, _)
return math.min(max_columns, 80)
return math.min(max_columns, 120)
end,
height = function(_, _, max_lines)
return math.min(max_lines, 15)