neorg icon indicating copy to clipboard operation
neorg copied to clipboard

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

Open NETLIFYHOSTINGAHMD opened this issue 1 year ago • 6 comments

Prerequisites

  • [X] I am using the latest stable release of Neovim
  • [X] 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 avatar Jul 01 '24 10:07 NETLIFYHOSTINGAHMD

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

benlubas avatar Jul 01 '24 12:07 benlubas

@benlubas done

NETLIFYHOSTINGAHMD avatar Jul 01 '24 14:07 NETLIFYHOSTINGAHMD

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?

NETLIFYHOSTINGAHMD avatar Jul 01 '24 14:07 NETLIFYHOSTINGAHMD

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.

benlubas avatar Jul 01 '24 14:07 benlubas

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

NETLIFYHOSTINGAHMD avatar Jul 01 '24 17:07 NETLIFYHOSTINGAHMD

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

benlubas avatar Jul 01 '24 19:07 benlubas