luukvbaal / statuscol.nvim

Status column plugin that provides a configurable 'statuscolumn' and click handlers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in opening a split window for nvim-markdown plugin

Aneeqasif opened this issue · comments

i get this error when i open :Toc window in https://github.com/ixru/nvim-markdown
image

this is my config

local builtin = require("statuscol.builtin")
cfg={
  setopt = true,
  relculright = true,
  segments = {

    { text = { "%s"}, click = "v:lua.ScSa" },
    { text = { builtin.foldfunc, " " }, 
      click = "v:lua.ScFa",
      -- hl = "LineNr",
    },

    { text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa", },
    -- {
    --   sign = { name = { ".*" }, maxwidth = 2, colwidth = 1, auto = true },
    --   click = "v:lua.ScSa"
    -- },
  }}




require("statuscol").setup(cfg)


What neovim version are you on? -1 shouldn't be an invalid namespace id in 0.9.

nvim --version
NVIM v0.9.0-dev
Build type: Release
LuaJIT 2.1.0-beta3

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info

Yeah so you're on a development version. You shouldn't get this error if you update to the 0.9 release version. If you still do, you should open an issue with neovim as it would be an issue with the API.