statuscol.nvim does not work on version 0.9.0
cppcoffee opened this issue · comments
When updating from version 0.8.3 to 0.9.0, the plugin does not work, and affects other plugins, including folke/todo-comments.nvim and folke/todo-comments.nvim.
statuscol.nvim config:
return {
"luukvbaal/statuscol.nvim",
opts = function()
local builtin = require("statuscol.builtin")
return {
relculright = true,
segments = {
{
sign = { name = { "Diagnostic" }, maxwidth = 1, auto = true },
click = "v:lua.ScSa"
},
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa", },
{ text = { builtin.foldfunc }, click = "v:lua.ScFa" },
{
text = { " " },
condition = { builtin.not_empty, true, builtin.not_empty },
click = "v:lua.ScFa"
},
{
sign = { name = { ".*" }, maxwidth = 1, colwidth = 2, auto = true },
click = "v:lua.ScSa"
},
}
}
end
}
todo-comments config:
return {
'folke/todo-comments.nvim',
event = 'VeryLazy',
dependencies = {
'nvim-lua/plenary.nvim',
},
opts = {
highlight = {
-- bg conflects with linehl of gitsigns
keyword = 'fg',
after = '',
},
}
}
gitsigns config:
local map = require('utils').map
return {
'lewis6991/gitsigns.nvim',
event = 'VeryLazy',
dependencies = { 'nvim-lua/plenary.nvim' },
opts = {
signs = {
add = { text = '▌' },
change = { text = '▌' },
delete = { text = '▌' },
topdelete = { text = '▌' },
changedelete = { text = '▌' },
},
keymaps = {
-- Default keymap options
noremap = true,
['n ]c'] = { expr = true, "&diff ? ']c' : '<cmd>lua require\"gitsigns.actions\".next_hunk()<CR>'" },
['n [c'] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns.actions\".prev_hunk()<CR>'" },
},
word_diff = false,
current_line_blame = true,
linehl = true,
numhl = true,
sign_priority = 6,
preview_config = {
border = 'rounded',
},
on_attach = function()
local gs = package.loaded.gitsigns
map('n', '<leader>p', gs.preview_hunk)
map({ 'n', 'v' }, '<leader>hr', ':Gitsigns reset_hunk<CR>')
end
}
}
Plugin icon font is displayed on the far left. after nvim 0.8.3 was updated to 0.9.0, icon font is displayed on the right.
Is this a bug?
On neovim 0.9.0, after disabling statuscol.nvim, the todo-comments and gitsigns plugins displays normally.
Maybe you should read up on what this plugin actually does?
The entire point of this plugin is to be able to customize the 'statuscolumn' or gutter area.
If you don't want signs to the right of the line number, you should move the sign segment in your statuscol.nvim config...
oh, it's my config that's wrong, thank you.