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

Text doesn't format after changing window size back to full #1498

Open
2 tasks done
NETLIFYHOSTINGAHMD opened this issue Jul 1, 2024 · 6 comments
Open
2 tasks done
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@NETLIFYHOSTINGAHMD
Copy link

NETLIFYHOSTINGAHMD commented Jul 1, 2024

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

0.10.0

Neorg setup

  {
      "vhyrro/luarocks.nvim",
      priority = 1000,
      config = true,
  },
  {
    "nvim-neorg/neorg",
    dependencies = { "luarocks.nvim" },
    version = "*",
    config = function()
      require("neorg").setup {
        load = {
          ["core.defaults"] = {},
          ["core.concealer"] = {},
          ["core.dirman"] = {
            config = {
              workspaces = {
                notes = "~/notes",
		DotComSecrets = "~/notes/DotComSecrets",
		Health = "~/notes/Health",
              },
              default_workspace = "notes",
            },
          },
        },
      }

Actual behavior

Writing notes from a book

drag

Finished the notes, and switched to full screen to view my notes

drag2

Expected behavior

I expected the text to format according to the new geometry of the window.

It should make use of the full window because I made use of the full window when I was typing the notes originally, in the smaller window.

Steps to reproduce

Tile 2 windows together, and write a bunch of notes in the nvim window.

And then try viewing them in full screen mode.

Potentially conflicting plugins

No response

Other information

No response

Help

No

Implementation help

No response

@NETLIFYHOSTINGAHMD NETLIFYHOSTINGAHMD added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Jul 1, 2024
@benlubas
Copy link
Contributor

benlubas commented Jul 1, 2024

Can you upload those screenshots to github so they show up in the issue itself? Just drag and drop the image into the textbox

@NETLIFYHOSTINGAHMD
Copy link
Author

@benlubas done

@NETLIFYHOSTINGAHMD
Copy link
Author

I figured out how to correct it and also make sure it looks good in full screen when I'm typing it in a smaller window. However, I'd still like to know if there's a proper way of going about this?

@benlubas
Copy link
Contributor

benlubas commented Jul 1, 2024

Seems like you're using wrapmargin to me. I'd recommend using textwidth to hard wrap at a set width instead. Anything from 80-100 is typically used. Soft wrapping (ie. with :set wrap) doesn't play nicely with conceal in neovim, so it can make norg documents look really messy.

@NETLIFYHOSTINGAHMD
Copy link
Author

Oh, okay. How does setting a fixed width help my case though? @benlubas

@benlubas
Copy link
Contributor

benlubas commented Jul 1, 2024

I'm not sure if it helps in your situation, I don't even know if you were using wrapmargin, idek how you fixed your issue, :P. textwidth is just what I recommend to make your notes look more consistent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

2 participants