Git Product home page Git Product logo

Comments (6)

David-Kunz avatar David-Kunz commented on June 30, 2024 2

Hi @iFrostizz ,

Thanks, this is already done by nvim.gen:

        vim.api.nvim_win_set_option(M.float_win, "wrap", true)

from gen.nvim.

David-Kunz avatar David-Kunz commented on June 30, 2024

Hi @micheleavellaNUT ,

What should happen is that at the end of the line, the text will continue in the new line.
Example:
Screenshot 2023-12-17 at 10 14 05

There's the unofficial config option win_config, but I might remove it in the future. You can also use vertical splits with display_mode = 'split'.

from gen.nvim.

Joseph-D-Bradshaw avatar Joseph-D-Bradshaw commented on June 30, 2024

I didn't used to suffer from this, but I got it on a new machine where I also setup neovim from scratch. I think it would be helpful to see a config to compare @micheleavellaNUT as I have an old working config in the git history of my dotfiles. I might be able to find out why

from gen.nvim.

iFrostizz avatar iFrostizz commented on June 30, 2024

This happens if you don't set the :set wrap option, the text is going to overflow the buffer.
It might be good to default to this option for windows opened by gen (or add it as a configuration ?).

from gen.nvim.

paulobazooka avatar paulobazooka commented on June 30, 2024

Thank you for your help, I had the same problem and noticed that I had set it not to break lines.

from gen.nvim.

Joseph-D-Bradshaw avatar Joseph-D-Bradshaw commented on June 30, 2024

I do not get wrapping unless I explicitly call :set wrap when the floating window is open. I am on the latest commit (87fbe81).

Extremely minimal configuration:

  -- Minimal configuration
  {
    "David-Kunz/gen.nvim",
    opts = {
      model = "deepseek-coder:6.7b",
  },

I know this is not a problem with gen.nvim but likely my own setup, how to debug it I am hoping one of the other commenters might be able to provide if they solved their issue - this doesn't happen with display_mode = "split" so I know it is a floating window specific issue.

from gen.nvim.

Related Issues (20)

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.