From 924b37ba121df90cb656d63ce82482ece130cb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=88=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=82=D0=BE=D0=BA=D0=B8?= =?UTF-8?q?=D1=9B-=D0=A8=D1=83=D0=BC=D0=B0=D1=80=D0=B0=D1=86?= Date: Mon, 7 Aug 2023 20:58:04 +0200 Subject: [PATCH] Replaced ChadTree with NvimTree, spelling fixes --- README.md | 2 +- lua/options/keybind.lua | 2 +- lua/plugins/init.lua | 1 + lua/plugins/lazy.lua | 19 +++++++++++-------- lua/plugins/nvimtree.lua | 23 +++++++++++++++++++++++ pictures/{lps-cmp.png => lsp-cmp.png} | Bin 6 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 lua/plugins/nvimtree.lua rename pictures/{lps-cmp.png => lsp-cmp.png} (100%) diff --git a/README.md b/README.md index 1d9b647..8ce141b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ -# Trtixy is a begginer friendy distro of neovim, that aims to be powerfull while remaining minimal. +# Trixy is a begginer friendy distro of NeoVim, that aims to be powerful while remaining minimal. ## Notable plugins and features include : diff --git a/lua/options/keybind.lua b/lua/options/keybind.lua index 3458ab2..b2bef46 100644 --- a/lua/options/keybind.lua +++ b/lua/options/keybind.lua @@ -35,7 +35,7 @@ end) -- slef explanitory map("n", "tw", "lua MiniTrailspace.trim()", options) -map("n", "fm", "CHADopen", options) +map("n", "fm", "NvimTreeToggle", options) map("n", "tt", "12 split Tnew", options) map("n", "zt", "Twilight", options) map("n", "zz", "ZenMode", options) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 7873540..e74fe64 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -12,3 +12,4 @@ require("plugins.veil") require("plugins.harpoon") require("plugins.hlblocks") require("plugins.gitsigns") +require("plugins.nvimtree") diff --git a/lua/plugins/lazy.lua b/lua/plugins/lazy.lua index ceb1a59..91043de 100644 --- a/lua/plugins/lazy.lua +++ b/lua/plugins/lazy.lua @@ -45,6 +45,17 @@ require("lazy").setup({ config = true }, + + { + "nvim-tree/nvim-tree.lua", + version = "*", + lazy = false, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + }, + + -- Debugger UI { "rcarriga/nvim-dap-ui", @@ -137,14 +148,6 @@ require("lazy").setup({ }, - -- File manager who? - { - "ms-jpq/chadtree", - version = 'chad', - build = 'python3 -m chadtree deps', - }, - - -- need that syntax highlight amirite { "nvim-treesitter/nvim-treesitter", diff --git a/lua/plugins/nvimtree.lua b/lua/plugins/nvimtree.lua new file mode 100644 index 0000000..ea0a54b --- /dev/null +++ b/lua/plugins/nvimtree.lua @@ -0,0 +1,23 @@ +-- disable netrw at the very start of your init.lua +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + +-- set termguicolors to enable highlight groups +vim.opt.termguicolors = true + +-- empty setup using defaults +require("nvim-tree").setup() + +-- OR setup with some options +require("nvim-tree").setup({ + sort_by = "case_sensitive", + view = { + width = 30, + }, + renderer = { + group_empty = true, + }, + filters = { + dotfiles = true, + }, +}) diff --git a/pictures/lps-cmp.png b/pictures/lsp-cmp.png similarity index 100% rename from pictures/lps-cmp.png rename to pictures/lsp-cmp.png