aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-05-02 10:48:28 +0100
committerrxi <rxi@users.noreply.github.com>2020-05-02 10:50:03 +0100
commit9f7959ef99171b49014606f60181d7f6a4dd7404 (patch)
treead28915d4b3cd2452f66c6f7c2561d5a6b39c765
parent3d84ad201a00267c2b0a5b9a184d6870e360d90f (diff)
downloadlite-xl-plugins-9f7959ef99171b49014606f60181d7f6a4dd7404.tar.gz
lite-xl-plugins-9f7959ef99171b49014606f60181d7f6a4dd7404.zip
Added `unboundedscroll` plugin
-rw-r--r--README.md1
-rw-r--r--plugins/unboundedscroll.lua5
2 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1404199..17fc1e8 100644
--- a/README.md
+++ b/README.md
@@ -37,4 +37,5 @@ Plugin | Description
[`titleize`](plugins/titleize.lua?raw=1) | Titleizes selected string (`hello world` => `Hello World`)
[`todotreeview`](https://github.com/drmargarido/TodoTreeView)* | Todo tree viewer for anotations in code like `TODO`, `BUG`, `FIX`, `IMPROVEMENT`
[`togglesnakecamel`](plugins/togglesnakecamel.lua?raw=1) | Toggles symbols between `snake_case` and `camelCase`
+[`unboundedscroll`](plugins/unboundedscroll.lua?raw=1) | Allows scrolling outside the bounds of a document
diff --git a/plugins/unboundedscroll.lua b/plugins/unboundedscroll.lua
new file mode 100644
index 0000000..c4cc7bb
--- /dev/null
+++ b/plugins/unboundedscroll.lua
@@ -0,0 +1,5 @@
+local DocView = require "core.docview"
+
+function DocView.clamp_scroll_position()
+ -- do nothing
+end