diff --git a/config/neovim/after/plugin/lir.lua b/config/neovim/after/plugin/lir.lua deleted file mode 100644 index f59bfc9..0000000 --- a/config/neovim/after/plugin/lir.lua +++ /dev/null @@ -1,67 +0,0 @@ -local has_lir, lir = pcall(require, "lir") -if not has_lir then - return -end - -local actions = require "lir.actions" -local clipboard_actions = require "lir.clipboard.actions" -local mark_actions = require "lir.mark.actions" - -lir.setup { - hide_cursor = true, - show_hidden_files = true, - devicons_enable = true, - - mappings = { - ["l"] = actions.edit, - [""] = actions.split, - [""] = actions.vsplit, - [""] = actions.tabedit, - - ["h"] = actions.up, - ["q"] = actions.quit, - - ["K"] = actions.mkdir, - ["N"] = actions.newfile, - ["R"] = actions.rename, - ["@"] = actions.cd, - ["Y"] = actions.yank_path, - ["."] = actions.toggle_show_hidden, - ["D"] = actions.delete, - - ["J"] = function() - mark_actions.toggle_mark() - vim.cmd "normal! j" - end, - - ["C"] = clipboard_actions.copy, - ["X"] = clipboard_actions.cut, - ["P"] = clipboard_actions.paste, - }, - - float = { - winblend = 0, - curdir_window = { - enable = false, - highlight_dirname = false, - }, - }, - - on_init = function() - -- use visual mode - vim.api.nvim_buf_set_keymap( - 0, - "x", - "J", - ':lua require"lir.mark.actions".toggle_mark("v")', - { noremap = true, silent = true } - ) - - -- echo cwd - vim.api.nvim_echo({ { vim.fn.expand "%:p", "Normal" } }, false, {}) - end, -} - -require("lir.git_status").setup { - show_ignored = false, -}