feat(nvim): relative lines are back, current line hide
This commit is contained in:
parent
9917cf55f8
commit
9bb1566180
2 changed files with 5 additions and 4 deletions
|
@ -2,8 +2,9 @@
|
||||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
-- Add any additional options here
|
-- Add any additional options here
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
opt.scrolloff = 8
|
opt.scrolloff = 9
|
||||||
opt.wrap = true
|
opt.wrap = true
|
||||||
opt.clipboard = "unnamedplus"
|
opt.clipboard = "unnamedplus"
|
||||||
opt.list = false
|
opt.list = false
|
||||||
opt.relativenumber = false
|
opt.relativenumber = true
|
||||||
|
opt.cursorline = false
|
||||||
|
|
|
@ -94,9 +94,9 @@ return {
|
||||||
layout_strategy = "center",
|
layout_strategy = "center",
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = "top",
|
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, _)
|
width = function(_, max_columns, _)
|
||||||
return math.min(max_columns, 80)
|
return math.min(max_columns, 120)
|
||||||
end,
|
end,
|
||||||
height = function(_, _, max_lines)
|
height = function(_, _, max_lines)
|
||||||
return math.min(max_lines, 15)
|
return math.min(max_lines, 15)
|
||||||
|
|
Loading…
Reference in a new issue