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

where is fold column? #140

Open
iHapiW opened this issue Sep 24, 2024 · 2 comments
Open

where is fold column? #140

iHapiW opened this issue Sep 24, 2024 · 2 comments

Comments

@iHapiW
Copy link

iHapiW commented Sep 24, 2024

im using nvchad newest version with this version of neovim ( compiled from source) :

NVIM v0.11.0-dev-828+g052875b9d
Build type: RelWithDebInfo
LuaJIT 2.1.1724512491

and i have this in lua/plugins/init.lua:

{
    ...

    -- UFO & statuscol for folding
    {
        "kevinhwang91/nvim-ufo",
        dependencies = "kevinhwang91/promise-async",
        event = "BufReadPost",
        config = function()
            require("configs.ufo")
        end,
    },
    {
        "luukvbaal/statuscol.nvim",
        event = "VeryLazy",
        config = function()
            require("configs.statuscol")
        end,
    },

    ...
}

and this is what i have in lua/configs/statuscol.lua

local builtin = require("statuscol.builtin")
require("statuscol").setup({
    relculright = false,
    segments = {
        {
            text = { " ", builtin.lnumfunc, " " },
            click = "v:lua.ScLa",
        },
        {
            text = { builtin.foldfunc, " " },
            click = "v:lua.ScFa",
        },
        {
            sign = {
                namespace = { "diagnostic/signs" },
                maxwidth = 2,
                auto = true,
            },
            click = "v:lua.ScSa",
        },
        {
            sign = { name = { ".*" }, maxwidth = 2, colwidth = 1, auto = true, wrap = true },
            click = "v:lua.ScSa",
        },
    },
})

i can see line numbers column and debug breakpoints. but i dont see folding column
also it might be useful to provide my lua/configs/ufo.lua:

require("ufo").setup({
    provider_selector = function(bufnr, filetype, buftype)
        return { "lsp", "indent" }
    end,
})

I have to note that i am not setting anything else related to folding in my config.
im newbie in lua and neovim so i would be thankful if someone could fix my problem

@iHapiW
Copy link
Author

iHapiW commented Sep 24, 2024

also it might be helpful to provide a picture...:
image

@luukvbaal
Copy link
Owner

Are there folds in the buffer? The foldcolumn still follows Nvim's 'foldcolumn' option so make sure it is not disabled.

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