diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | plugins/hidelinenumbers.lua | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -19,6 +19,7 @@ Plugin | Description [`eval`](plugins/eval.lua?raw=1) | Replaces selected Lua code with its evaluated result [`gitstatus`](plugins/gitstatus.lua?raw=1) | Displays git branch and insert/delete count in status bar *([screenshot](https://user-images.githubusercontent.com/3920290/81107223-bcea3080-8f0e-11ea-8fc7-d03173f42e33.png))* [`gofmt`](plugins/gofmt.lua?raw=1) | Auto-formats the current go file, adds the missing imports and the missing return cases +[`hidelinenumbers`](plugins/hidelinenumbers.lua?raw=1) | Hides the line numbers on the left of documents *([screenshot](https://user-images.githubusercontent.com/3920290/81692043-b8b19c00-9455-11ea-8d74-ad99be4b9c5f.png))* [`hidestatus`](plugins/hidestatus.lua?raw=1) | Hides the status bar at the bottom of the window [`indentguide`](plugins/indentguide.lua?raw=1) | Adds indent guides *([screenshot](https://user-images.githubusercontent.com/3920290/79640716-f9860000-818a-11ea-9c3b-26d10dd0e0c0.png))* [`language_angelscript`](plugins/language_angelscript.lua?raw=1) | Syntax for the [Angelscript](https://www.angelcode.com/angelscript/) programming language diff --git a/plugins/hidelinenumbers.lua b/plugins/hidelinenumbers.lua new file mode 100644 index 0000000..206bd23 --- /dev/null +++ b/plugins/hidelinenumbers.lua @@ -0,0 +1,5 @@ +local style = require "core.style" +local DocView = require "core.docview" + +DocView.draw_line_gutter = function() end +DocView.get_gutter_width = function() return style.padding.x end |