diff options
| author | kylo252 <[email protected]> | 2022-09-16 11:15:18 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-16 11:15:18 +0200 | 
| commit | 62d9a4ea9df1828af2cbc6c5f42774f1662aaab4 (patch) | |
| tree | c53b9b6c1719d3339d8cc249d25a5947c44b8a9f | |
| parent | a4c2dc4d0b638a50c3219f247b09e6238a44ec50 (diff) | |
revert: remove incomplete lir integration (#3030)
| -rw-r--r-- | lua/lvim/core/builtins/init.lua | 1 | ||||
| -rw-r--r-- | lua/lvim/core/lir.lua | 90 | ||||
| -rw-r--r-- | lua/lvim/plugins.lua | 10 | 
3 files changed, 2 insertions, 99 deletions
| diff --git a/lua/lvim/core/builtins/init.lua b/lua/lvim/core/builtins/init.lua index 03ee8aec..5cad2a00 100644 --- a/lua/lvim/core/builtins/init.lua +++ b/lua/lvim/core/builtins/init.lua @@ -9,7 +9,6 @@ local builtins = {    "lvim.core.telescope",    "lvim.core.treesitter",    "lvim.core.nvimtree", -  "lvim.core.lir",    "lvim.core.project",    "lvim.core.bufferline",    "lvim.core.autopairs", diff --git a/lua/lvim/core/lir.lua b/lua/lvim/core/lir.lua deleted file mode 100644 index e14e01cd..00000000 --- a/lua/lvim/core/lir.lua +++ /dev/null @@ -1,90 +0,0 @@ -local M = {} - -M.config = function() -  local status_ok, lir = pcall(require, "lir") -  if not status_ok then -    return -  end - -  local actions = require "lir.actions" -  local mark_actions = require "lir.mark.actions" -  local clipboard_actions = require "lir.clipboard.actions" - -  lir.setup { -    show_hidden_files = false, -    devicons_enable = true, -    mappings = { -      ["l"] = actions.edit, -      ["<CR>"] = actions.edit, -      ["<C-s>"] = actions.split, -      ["v"] = actions.vsplit, -      ["<C-t>"] = actions.tabedit, - -      ["h"] = actions.up, -      ["q"] = actions.quit, - -      ["A"] = actions.mkdir, -      ["a"] = actions.newfile, -      ["r"] = actions.rename, -      ["@"] = actions.cd, -      ["Y"] = actions.yank_path, -      ["i"] = 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 = true, -      }, - -      -- -- You can define a function that returns a table to be passed as the third -      -- -- argument of nvim_open_win(). -      win_opts = function() -        local width = math.floor(vim.o.columns * 0.7) -        local height = math.floor(vim.o.lines * 0.7) -        return { -          border = "rounded", -          width = width, -          height = height, -          -- row = 1, -          -- col = math.floor((vim.o.columns - width) / 2), -        } -      end, -    }, -    hide_cursor = false, -    on_init = function() -      -- use visual mode -      vim.api.nvim_buf_set_keymap( -        0, -        "x", -        "J", -        ':<C-u>lua require"lir.mark.actions".toggle_mark("v")<CR>', -        { noremap = true, silent = true } -      ) - -      -- echo cwd -      -- vim.api.nvim_echo({ { vim.fn.expand "%:p", "Normal" } }, false, {}) -    end, -  } - -  -- custom folder icon -  require("nvim-web-devicons").set_icon { -    lir_folder_icon = { -      icon = "î—¿", -      -- color = "#7ebae4", -      -- color = "#569CD6", -      color = "#42A5F5", -      name = "LirFolderNode", -    }, -  } -end -return M diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index 0b3b51fc..bfe76bb8 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -132,19 +132,13 @@ local core_plugins = {    -- NvimTree    {      "kyazdani42/nvim-tree.lua", +    -- event = "BufWinOpen", +    -- cmd = "NvimTreeToggle",      config = function()        require("lvim.core.nvimtree").setup()      end,      disable = not lvim.builtin.nvimtree.active,    }, -  { - -    "christianchiarulli/lir.nvim", -    config = function() -      require("lvim.core.lir").setup() -    end, -    disable = not lvim.builtin.nvimtree.active, -  },    {      "lewis6991/gitsigns.nvim", | 
