From 26d037f8c6a4f72392751fac81b13cfafeaebb41 Mon Sep 17 00:00:00 2001 From: Tilo Klarenbeek Date: Mon, 19 Jun 2023 21:29:43 +0200 Subject: [PATCH] Added tree --- init.lua | 12 +++++++++++- lua/custom/plugins/icons.lua | 7 ------- lua/custom/plugins/nvim-tree.lua | 10 ++++++++++ lua/custom/plugins/trouble.lua | 2 +- 4 files changed, 22 insertions(+), 9 deletions(-) delete mode 100644 lua/custom/plugins/icons.lua create mode 100644 lua/custom/plugins/nvim-tree.lua diff --git a/init.lua b/init.lua index e808c83..52f2d2a 100644 --- a/init.lua +++ b/init.lua @@ -109,7 +109,7 @@ require('lazy').setup({ opts = { options = { icons_enabled = false, - theme = 'catppuccin', + theme = 'carbonfox', component_separators = '|', section_separators = '', }, @@ -601,3 +601,13 @@ vim.opt.shiftwidth = 4 -- Indents will have a width of 4 vim.opt.softtabstop = 4 -- Sets the number of columns for a TAB vim.opt.expandtab = true -- Expand TABs to spaces + +-- 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() diff --git a/lua/custom/plugins/icons.lua b/lua/custom/plugins/icons.lua deleted file mode 100644 index 382ec7f..0000000 --- a/lua/custom/plugins/icons.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - "kyazdani42/nvim-web-devicons", - module = "nvim-web-devicons", - config = function() - require("nvim-web-devicons").setup() - end, -} diff --git a/lua/custom/plugins/nvim-tree.lua b/lua/custom/plugins/nvim-tree.lua new file mode 100644 index 0000000..606fc47 --- /dev/null +++ b/lua/custom/plugins/nvim-tree.lua @@ -0,0 +1,10 @@ +return { + "nvim-tree/nvim-tree.lua", + version = "*", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + config = function() + require("nvim-tree").setup {} + end, +} diff --git a/lua/custom/plugins/trouble.lua b/lua/custom/plugins/trouble.lua index fe17c3c..fa944e6 100644 --- a/lua/custom/plugins/trouble.lua +++ b/lua/custom/plugins/trouble.lua @@ -1,6 +1,6 @@ return { "folke/trouble.nvim", - requires = "kyazdani42/nvim-web-devicons", + requires = "nvim-tree/nvim-web-devicons", config = function() require("trouble").setup { -- your configuration comes here