mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim/lua/user/plugins/editor.lua: fix cursor line for status column
This commit is contained in:
parent
ec5ace4dd7
commit
c076f9bdd9
1 changed files with 5 additions and 16 deletions
|
|
@ -102,24 +102,13 @@ return {
|
||||||
},
|
},
|
||||||
{ text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
{ text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
||||||
{
|
{
|
||||||
text = { icons.signcolum.separator },
|
text = {
|
||||||
condition = {
|
|
||||||
function(args)
|
function(args)
|
||||||
local pos = vim.api.nvim_win_get_cursor(0)
|
local pos = vim.api.nvim_win_get_cursor(args.win)
|
||||||
return args.lnum ~= pos[1]
|
return (args.lnum == pos[1] and "%#SignColumnSep#%=" or "")..icons.signcolum.separator
|
||||||
end
|
end,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
text = { icons.signcolum.separator },
|
|
||||||
hl = "SignColumnSep",
|
|
||||||
condition = {
|
|
||||||
function(args)
|
|
||||||
local pos = vim.api.nvim_win_get_cursor(0)
|
|
||||||
return args.lnum == pos[1]
|
|
||||||
end
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue