From 2a84277592de5a627e11e410170cf6c90c726fb6 Mon Sep 17 00:00:00 2001 From: godot Date: Mon, 15 Apr 2024 07:18:48 +0200 Subject: [PATCH] map of filesystem --- README.md | 4 ++-- init.lua | 13 ++----------- lazy-lock.json | 4 ++++ lua/plugins.lua | 16 ++++++++++++++++ 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 lua/plugins.lua diff --git a/README.md b/README.md index c9e30af..3abb96b 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ - https://github.com/folke/lazy.nvim (plugin manager) - https://github.com/catppuccin/nvim?tab=readme-ov-file (colour scheme) - https://github.com/nvim-telescope/telescope.nvim (fuzzy finder) -- https://github.com/nvim-treesitter/nvim-treesitter (tree sitter plugin) - +- https://github.com/nvim-treesitter/nvim-treesitter (tree sitter plugin old) +- https://github.com/nvim-neo-tree/neo-tree.nvim (map of filesystem) ### Tutorials used - [YT - typecraft serie](https://www.youtube.com/watch?v=zHTeCSVAFNY&list=PLsz00TDipIffreIaUNk64KxTIkQaGguqn) diff --git a/init.lua b/init.lua index 53aee6c..0f35ba8 100644 --- a/init.lua +++ b/init.lua @@ -15,21 +15,12 @@ vim.opt.rtp:prepend(lazypath) -- Configuration of plugins -- -local plugins = { - { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, -- colour scheme -- - - {'nvim-telescope/telescope.nvim', tag = '0.1.6', -- fuzzy finder (telescope) -- - dependencies = { 'nvim-lua/plenary.nvim' }}, - - {"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"}, -- tree sitter -- - -} local opts = {} -- Runs plugins -- -require("lazy").setup(plugins, opts) -- packet manager -- +require("lazy").setup("plugins") -- packet manager -- local builtin = require("telescope.builtin") -- fuzzy finder -- @@ -53,4 +44,4 @@ vim.cmd.colorscheme "catppuccin" vim.keymap.set('n', '', builtin.find_files, {}) -- telescope find -- -- vim.keymap.set('n', '', builtin.live_grep, {}) -- I dont know what this is doing? -- - +vim.keymap.set('n', '', ':Neotree filesystem toggle left', {}) diff --git a/lazy-lock.json b/lazy-lock.json index 68b5a2b..fac3a05 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,7 +1,11 @@ { "catppuccin": { "branch": "main", "commit": "fc98570d85ae772e56dc42cf8d7d6a497a909bdb" }, + "image.nvim": { "branch": "master", "commit": "9be5ede323756d7ee2bbef2bc157767b3972cce6" }, "lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "7aad1bf3f6b849cbf108e02c55ad4d701cb4d33a" }, + "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" }, "nvim-treesitter": { "branch": "master", "commit": "40e8c92f99ef26625ff2206f5e183ac3109f20ba" }, + "nvim-web-devicons": { "branch": "master", "commit": "6e355632387a085f15a66ad68cf681c1d7374a04" }, "plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" }, "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" } } \ No newline at end of file diff --git a/lua/plugins.lua b/lua/plugins.lua new file mode 100644 index 0000000..8363484 --- /dev/null +++ b/lua/plugins.lua @@ -0,0 +1,16 @@ +return { + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, -- colour scheme -- + + {'nvim-telescope/telescope.nvim', tag = '0.1.6', -- fuzzy finder (telescope) -- + dependencies = { 'nvim-lua/plenary.nvim' }}, + + {"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"}, -- tree sitter -- + + {"nvim-neo-tree/neo-tree.nvim",branch = "v3.x", -- map of filesystem + dependencies = {"nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- Optional but recomanded + "MunifTanjim/nui.nvim", + "3rd/image.nvim", -- Optional image support in preview window + } + } +}