1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/plugins/editor.lua: fix cursorline for status colum

This commit is contained in:
Henrik Hautakoski 2024-12-16 23:41:55 +01:00
parent cdfafa96d6
commit cc7b66feed
3 changed files with 232 additions and 96 deletions

View file

@ -101,7 +101,26 @@ return {
click = "v:lua.ScLa",
},
{ text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" },
{ text = { "" } },
{ text = { "" } },
{
text = { " " },
condition = {
function(args)
local pos = vim.api.nvim_win_get_cursor(0)
return args.lnum ~= pos[1]
end
}
},
{
text = { " " },
hl = "CursorLine",
condition = {
function(args)
local pos = vim.api.nvim_win_get_cursor(0)
return args.lnum == pos[1]
end
}
}
}
}
end,