diff options
author | Erlend Lind Madsen <erlendf80@gmail.com> | 2022-01-24 01:54:58 +0100 |
---|---|---|
committer | Erlend Lind Madsen <erlendf80@gmail.com> | 2022-01-24 01:54:58 +0100 |
commit | c7d07c6de2e2e003d903fc4c2b561cb7b2976e03 (patch) | |
tree | f0f11988213ec79564d5dc22f7388da4c7364f41 | |
parent | 3055ec7a94b82fa358c87b865258b3acf88314af (diff) | |
download | vis-cursors-c7d07c6de2e2e003d903fc4c2b561cb7b2976e03.tar.gz |
...
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,6 +2,9 @@ local M = {} local cursors = {} local files = {} +-- default maxsize +M.maxsize = 1000 + -- get the default system cache directory local get_default_cache_path = function() local HOME = os.getenv('HOME') @@ -13,9 +16,6 @@ end -- default save path M.path = get_default_cache_path() --- default maxsize -M.maxsize = 1000 - function read_files() -- read file @@ -83,7 +83,7 @@ local on_win_close = function(win) -- insert current path to top of files table.insert(files, 1, win.file.path) - -- set cursor pos for current file path + -- set cursor pos for current file path cursors[win.file.path] = win.selection.pos end |