start refresh. Need to find a way to trigger the function when FS is altered

This commit is contained in:
kyazdani42
2020-02-14 17:42:07 +01:00
parent 083d2b556d
commit 98d94876f2
3 changed files with 34 additions and 2 deletions

View File

@@ -64,7 +64,6 @@ local function set_mappings(edit_type)
api.nvim_buf_set_keymap(buf, 'i', '<c-' ..v:upper()..'>', '', { nowait = true, noremap = true, silent = true })
end
-- TODO: launch different functions here
if edit_type == 'add' then
api.nvim_buf_set_keymap(buf, 'i', '<CR>', "<esc>:lua require'lib/file'.add_file(vim.api.nvim_get_current_line())<CR>", { nowait = true, noremap = true, silent = true })
elseif edit_type == 'rename' then