From 4c0d7806f5b220c05132b76acba2c261b117109e Mon Sep 17 00:00:00 2001 From: Andrzej Stepien Date: Wed, 20 Mar 2024 16:19:03 +0100 Subject: [PATCH] replace neotree with files.mini --- lua/keymaps.lua | 3 ++- lua/plugins/mini.lua | 1 + lua/plugins/neotree.lua | 38 +++++++++++++++++++------------------- package-lock.json | 2 +- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index d6cc523..2f347dd 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -9,7 +9,7 @@ local function map(mode, lhs, rhs, opts) end map("i", "jk", "") -- remap escape -map("n", "n", ":Neotree toggle") --open Nerdtree +-- map("n", "n", ":Neotree toggle") --open Nerdtree map("n", "", 'echo "Use h to move!!"') map("n", "", 'echo "Use l to move!!"') @@ -17,3 +17,4 @@ map("n", "", 'echo "Use k to move!!"') map("n", "", 'echo "Use j to move!!"') map("n", "z", ":ZenMode") --open ZenMode (distraction-free) map("n", "l", ":LazyGit") -- open LazyGit +map("n", "f", ":lua MiniFiles.open()") diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index 132965e..9403670 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -18,5 +18,6 @@ return { -- Collection of various small independent plugins/modules -- ... and there is more! -- Check out: https://github.com/echasnovski/mini.nvim + require("mini.files").setup() end, } diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index c57e453..64ac968 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -1,23 +1,23 @@ return { { - "nvim-neo-tree/neo-tree.nvim", - branch = "v3.x", - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended - "MunifTanjim/nui.nvim", - -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information - }, - init = function() - require("neo-tree").setup({ - filesystem = { - filtered_items = { - visible = true, -- This is what you want: If you set this to `true`, all "hide" just mean "dimmed out" - hide_dotfiles = false, - hide_gitignored = true, - }, - }, - }) - end, + -- "nvim-neo-tree/neo-tree.nvim", + -- branch = "v3.x", + -- dependencies = { + -- "nvim-lua/plenary.nvim", + -- "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + -- "MunifTanjim/nui.nvim", + -- -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information + -- }, + -- init = function() + -- require("neo-tree").setup({ + -- filesystem = { + -- filtered_items = { + -- visible = true, -- This is what you want: If you set this to `true`, all "hide" just mean "dimmed out" + -- hide_dotfiles = false, + -- hide_gitignored = true, + -- }, + -- }, + -- }) + -- end, }, } diff --git a/package-lock.json b/package-lock.json index 1b64c06..464ef42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "ajs-nvim", + f "name": "ajs-nvim", "lockfileVersion": 3, "requires": true, "packages": {