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:
parent
cdfafa96d6
commit
cc7b66feed
3 changed files with 232 additions and 96 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue