Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable statuscol in neo-tree #123

Open
hungvx-dev opened this issue May 9, 2024 · 1 comment
Open

Disable statuscol in neo-tree #123

hungvx-dev opened this issue May 9, 2024 · 1 comment

Comments

@hungvx-dev
Copy link

hungvx-dev commented May 9, 2024

i config

local M = {}

function M.setup()
  local present, statuscol = pcall(require, "statuscol")
  if not present then
    return
  end
  local builtin = require("statuscol.builtin")
  M.opts = {
    ft_ignore = { "neo-tree" },
    bt_ignore = { "neo-tree" },
    segments = {
      { text = { builtin.foldfunc }, click = "v:lua.ScFa" },
      { text = { "%s" }, click = "v:lua.ScSa" },
      {
        text = { "", builtin.lnumfunc, " " },
        condition = { true, builtin.not_empty },
        click = "v:lua.ScLa",
      },
    },
  }

  statuscol.setup(M.opts)
end
return M

not working

    ft_ignore = { "neo-tree" },
    bt_ignore = { "neo-tree" },
image
@AbriCroco
Copy link

AbriCroco commented Aug 2, 2024

Hello there,

it's been a while since you posted this issue so I'm not sure you didn't find a solution of your own but I personally made it work thanks to this comment.

I'm not great in lua so I literally just ripped off these lines. To make it work though I had to replace
vim.cmd("setlocal statuscolumn=")
by
vim.cmd("setlocal foldcolumn=0")

as I set foldcolumn = 1 in my neovim config.

I hope it will help other people like it helped me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants