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

bug: Increase, decrease width or pre-defining width doesn't work with the default "left" bar. #74

Open
3 tasks done
agoodfellow123 opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@agoodfellow123
Copy link

Did you check docs and existing issues?

  • I have read all the edgy.nvim docs
  • I have searched the existing issues of edgy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.5 Release

Operating system/version

Arch Linux

Describe the bug

Hello, I'm new to nvim and its plugins. I'm using the lazynvim distribution of nvim. I installed all the optional packages for edgy.nvim and put the default config from here: http://www.lazyvim.org/extras/ui/edgy. There are two problems with that but I will focus on one in this issue.

here is a little snippet:

        {
          title = "Neo-Tree",
          ft = "neo-tree",
          filter = function(buf)
            return vim.b[buf].neo_tree_source == "filesystem"
          end,
          pinned = true,
          open = function()
            vim.api.nvim_input("<esc><space>e")
          end,
          size = { height = 0.5, width = 10},
        },

In that snippet width = 10 does nothing.
Also doing this:

left = {
    size = 30 
},

Does nothing as well.
Using the default keybind space + ctrl + w + < Does nothing as well, but for example same thing for height works as intended.

As a side issue that I think might be related to this: "bottom" edgebar doesn't work at all despite require("edgy").open("bottom"). I'm not sure if they are related but if there is a problem with width related code it may not be able to display it correctly.

Steps To Reproduce

  1. Install lazynvim
  2. Make sure everything is up to date
  3. Copy the default edgy config file
  4. Press "space + c + e"
  5. Press "space + ctrl + w + <"

Expected Behavior

Neo-tree's width decreases or increases.

Repro

-- I didn't understand how to run edge-nvim with this config so I couldn't do anything.

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/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", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/edgy.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@agoodfellow123 agoodfellow123 added the bug Something isn't working label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant