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

Typing past the line limit leads to wrapping in the middle of a word #136

Open
kovasap opened this issue Jan 1, 2023 · 1 comment
Open

Comments

@kovasap
Copy link

kovasap commented Jan 1, 2023

| denotes the edge of my vim terminal window. This problem only happens when going past the edge of my screen (upon which my test visually wraps with set wrap). This problem goes away when I use set nolinebreak.

When I put my cursor at the end of this function argument list:

(defn tile-from-str
  [row-idx col-idx [tile-letter bonus-resource-letter bonus-resource-quantity]] |
  code)

and type "testing", I get:

(defn tile-from-str
  [row-idx col-idx [tile-letter bonus-resource-letter bonus-resource-quantitying| test]]
  code)

parinfer seems to break my word right in the middle as I'm typing it.

This problem is only present when parinfer is on and doesn't seem to be effected when I set formatoptions=.

@kovasap
Copy link
Author

kovasap commented Jan 1, 2023

This also happens with https://github.com/gpanders/nvim-parinfer, so maybe it's a problem with the parinfer algorithm itself, or how it gets info from vim about where the cursor is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant