Replies: 2 comments
-
You set your buffer type to read-only: bufpane.Buf.Type.Readonly = true |
Beta Was this translation helpful? Give feedback.
-
✅ Best Practices (Depending on Environment): Not part of the buffer Can't be selected or edited lua Keep editable input below decor Don’t allow focus/cursor in those lines go |
Beta Was this translation helpful? Give feedback.
-
I want to create a bufpane and cut of it small part (several parts in the top) for custom decoration and custom status line. When I just place decoration in the bufpane, I can select it with cursor or do other dirty things with the decor. I would like to make it unselectable and uneditable... Is it possible to do it without dirty hacks with handling all the cursor events and manually preventing user from editing decors?
Beta Was this translation helpful? Give feedback.
All reactions