Giter VIP home page Giter VIP logo

maximize.nvim's People

Contributors

declancm avatar kevmuko avatar kuwagata avatar rockyzhang24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

maximize.nvim's Issues

Failed to run `config` for maximaze.nvim

I updated my maximize today with lazy.nvim and deleted the `` and now have this config:

return {
  "declancm/maximize.nvim",
  config = function()
    require('maximize').setup()

    local keymap = vim.keymap
    local opts = { noremap = true, silent = true }

    opts.desc = "Toggle maximizer"
    keymap.set("n", "<leader>zz", "<Cmd>lua require('maximize').toggle()<CR>", opts)
  end
}

This is the error receive:

Failed to run `config` for maximize.nvim

vim/shared.lua:0: attempt to index a nil value

# stacktrace:
  - vim/shared.lua:0 _in_ **tbl_get**
  - /maximize.nvim/lua/maximize/config.lua:22 _in_ **setup**
  - /maximize.nvim/lua/maximize/init.lua:14 _in_ **setup**
  - lua/configs/plugins/maximize.lua:4 _in_ **config**
  - lua/configs/lazy.lua:8
  - init.lua:2

Because of the error maximize does not work anymore, whether through the Lua API or through the vim Command.

"Special" buffers are restored as empty buffers

Special buffers like file tree buffers cannot be saved in the session so they are restored as empty buffers.

One solution to this problem can be to close these buffer like it's done in the neovim-session-manager plugin:

[Feature request] Support nvim-dap-ui buffers

Currently the plugin doesn't work with nvim-dap-ui's elements (like the buffer of the watchers for example). It doesn't even restore them if you toggle maximize the source code buffer. I think it might be because nvim-dap-ui buffers are hidden or something, not sure what they're called; basically they're not visible in the list when you run the command :buffers

Neo-tree window disappears after require('maximize').restore()

two vertical split editing windows with Neo-tree window opened, if require('maximize').toggle() one of the editing window, then require('maximize').restore()(the same problem with require('maximize').toggle() again), the Neo-tree window will disappear, not a big problem, but wish better to fix.

[Bug] Toggle, Toggle, Toggle Sequence gives "Already one window" error

System Information:
I'm on neovim 0.7.2.

How to reproduce and issue:
Open up a second buffer in a vertical split, so that we have two files, let's call them "buffer1" and "buffer2" in the left and right splits respectively. Then with focus on buffer1, run :lua require('maximize').toggle() three times (once to maximize,then minimize, then maximize again). On the third toggle, I get a message that says Already only one window and the split with buffer1 is closed and only buffer2 is visible. Subsequent toggle calls don't do anything.

Doesn't work with dirvish windows

hi there, thanks for your effort!

unfortunately it drops dirvish windows, either you toggle maximize in dirvish or in any other window.

is there a chance you can have a look at it? thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.