From 67ab7dd9c804528474bf8bcc32c6f37b5f3e313b Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Thu, 13 Apr 2023 03:48:32 -0400 Subject: [PATCH] Move plugins to apt file, use consistent style, configure nvim-tree --- init.lua | 14 +++++++++++--- lua/custom/plugins/init.lua | 13 ++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index eb9ac6b..cb1ab90 100644 --- a/init.lua +++ b/init.lua @@ -57,6 +57,15 @@ if not vim.loop.fs_stat(lazypath) then } end vim.opt.rtp:prepend(lazypath) +-- nvim-tree setup + +-- disable netrw at the very start of your init.lua (strongly advised) +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + +-- set termguicolors to enable highlight groups +vim.opt.termguicolors = true +-- [end] nvim-tree setup -- NOTE: Here is where you install your plugins. -- You can configure plugins using the `config` key. @@ -66,9 +75,6 @@ vim.opt.rtp:prepend(lazypath) require('lazy').setup({ -- NOTE: First, some plugins that don't require any configuration - -- Catppuccin theme - { "catppuccin/nvim", name = "catppuccin" }, - -- Git related plugins 'tpope/vim-fugitive', 'tpope/vim-rhubarb', @@ -427,6 +433,8 @@ local servers = { -- Setup neovim lua configuration require('neodev').setup() +-- nvim-tree config empty setup using defaults +require("nvim-tree").setup() -- nvim-cmp supports additional completion capabilities, so broadcast that to servers local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d..63afecc 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,15 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + -- gruvbox theme + {'morhetz/gruvbox', config = function() vim.cmd.colorscheme('gruvbox') end }, + -- Noctis Theme + { 'talha-akram/noctis.nvim', name = 'noctis' }, + -- Catppuccin theme + { 'catppuccin/nvim', name = 'catppuccin' }, + + -- nvim-tree + 'nvim-tree/nvim-tree.lua', + 'nvim-tree/nvim-web-devicons', +}