From 3e04580e747b8e7d422b6c35b35ffa12b0c93dd7 Mon Sep 17 00:00:00 2001 From: kiyan42 Date: Mon, 10 Feb 2020 17:11:19 +0100 Subject: [PATCH] list dotfiles --- lua/tree.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/tree.lua b/lua/tree.lua index 28d99215..af8f0dcf 100644 --- a/lua/tree.lua +++ b/lua/tree.lua @@ -18,13 +18,14 @@ local function check_dir_access(path) end local function list_dirs(path) + local ls_cmd = 'ls -A --ignore=.git ' if path == nil then - return syslist('ls') + return syslist(ls_cmd) elseif check_dir_access(path) == false then -- TODO: display an error here (permission denied) return {} else - return syslist('ls ' .. path) + return syslist(ls_cmd .. path) end end @@ -219,8 +220,8 @@ local function set_mappings() local maps = { j = 'j$B', k = 'k$B', - l = '', - h = '' + l = '', + h = '' } for k,v in pairs(maps) do