luukvbaal / statuscol.nvim

Status column plugin that provides a configurable 'statuscolumn' and click handlers.
MIT License
534 stars 25 forks source link

Weird characters when writing in insert mode #16

Closed mrassili closed 1 year ago

mrassili commented 1 year ago

I've installed statuscol on a bare Neovim install, it's the only plugin installed apart from lazy.nvim

and when I set setopt to true I have these weird characters all over the place when writing

See recording

https://user-images.githubusercontent.com/25288435/216472525-f2547e17-6186-4ca8-8948-6fae4044525e.mov

here's my init.lua

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

vim.g.mapleader = " "

require("lazy").setup({
  {
   "luukvbaal/statuscol.nvim",
    config = function()
    require("statuscol").setup({ setopt = true })
    end,
  },
})

vim.o.number = true
vim.o.relativenumber = true
luukvbaal commented 1 year ago

Thanks for reporting, I can reproduce. Never encountered this so not sure what causes this (and what prevents it from happening on my setup)! This will need to be fixed in neovim as this plugin just builds the 'statuscolumn' string.

mrassili commented 1 year ago

Thank you, I'm going to change the statuscolumn a bit to match my need and wait for a fix hopefully soon :)

luukvbaal commented 1 year ago

Hmm it seems not calling wingetinfo() prevents this actually. Perhaps we can make a temporary fix here. Not sure what to do about it in neovim.

luukvbaal commented 1 year ago

Note to self: the validate_botline() call in get_win_info() causes this.

mrassili commented 1 year ago

that fixes the issue, thank you @luukvbaal