From 75075cd5a1d1fea62be6e62556cf984b0bcd5efa Mon Sep 17 00:00:00 2001 From: aryatsriv Date: Thu, 16 Jan 2025 23:52:10 +0530 Subject: [PATCH 1/8] Update init.lua --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 610018e8d99..5137bf7c482 100644 --- a/init.lua +++ b/init.lua @@ -102,7 +102,7 @@ vim.g.have_nerd_font = false vim.opt.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! --- vim.opt.relativenumber = true +vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' From d830b744ecb63cdefa952b027e66b73459bb386b Mon Sep 17 00:00:00 2001 From: aryatsriv Date: Sat, 25 Jan 2025 00:42:15 +0530 Subject: [PATCH 2/8] Update init.lua --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index dc85ebbd14c..fb9c8d72346 100644 --- a/init.lua +++ b/init.lua @@ -942,7 +942,7 @@ require('lazy').setup({ -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- Or use telescope! From 14db8e5f36138e84f680dc73ca74a11626f74364 Mon Sep 17 00:00:00 2001 From: aryatsriv Date: Sat, 25 Jan 2025 00:44:42 +0530 Subject: [PATCH 3/8] Update init.lua --- lua/custom/plugins/init.lua | 45 ++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8d7a..9deb06eef2f 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,47 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + -- Other plugins... + + -- Add nvim-tree plugin + { + 'nvim-tree/nvim-tree.lua', + dependencies = { 'nvim-tree/nvim-web-devicons' }, -- For file icons + config = function() + require('nvim-tree').setup { + disable_netrw = true, -- Disable netrw + hijack_netrw = true, -- Hijack netrw for nvim-tree + view = { + side = 'left', + width = 30, + }, + renderer = { + icons = { + show = { + file = true, + folder = true, + folder_arrow = true, + git = true, + }, + }, + }, + diagnostics = { + enable = true, -- Show diagnostic info + icons = { + hint = '', + info = '', + warning = '', + error = '', + }, + }, + git = { + enable = true, -- Show git status + }, + filters = { + dotfiles = false, -- Show hidden files + }, + } + end, + }, +} From 56612daa5205b5a4810c9a7f10b484807bcc58b4 Mon Sep 17 00:00:00 2001 From: aryatsriv Date: Wed, 29 Jan 2025 18:33:56 +0530 Subject: [PATCH 4/8] Update init.lua --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index fb9c8d72346..8396240c891 100644 --- a/init.lua +++ b/init.lua @@ -189,6 +189,9 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +--NvimTree Toggle +vim.keymap.set('n', '', ':NvimTreeToggle', { noremap = true, silent = true }) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` From e76a75c79866f2f19d60e7fc7616fbb4076d6bf4 Mon Sep 17 00:00:00 2001 From: aryat Date: Mon, 19 May 2025 01:33:56 +0530 Subject: [PATCH 5/8] Lazy git changes --- init.lua | 24 ++++++++++++------------ lua/custom/plugins/init.lua | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/init.lua b/init.lua index 8396240c891..78dd186f9d5 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.opt` @@ -102,6 +102,7 @@ vim.g.have_nerd_font = false vim.opt.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! + vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! @@ -189,7 +190,7 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) ---NvimTree Toggle +-- NvimTree Toggle vim.keymap.set('n', '', ':NvimTreeToggle', { noremap = true, silent = true }) -- [[ Basic Autocommands ]] @@ -846,7 +847,7 @@ require('lazy').setup({ -- change the command in the config to whatever the name of that colorscheme is. -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', + 'folke/tokyonight.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. init = function() -- Load the colorscheme here. @@ -857,14 +858,14 @@ require('lazy').setup({ -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' end, - }, - + }, + -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, { -- Collection of various small independent plugins/modules 'echasnovski/mini.nvim', - config = function() + config = function() -- Better Around/Inside textobjects -- -- Examples: @@ -934,14 +935,13 @@ require('lazy').setup({ -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- - -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', - -- require 'kickstart.plugins.lint', - -- require 'kickstart.plugins.autopairs', - -- require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.debug', + require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.lint', + require 'kickstart.plugins.autopairs', -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps - -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` + -- NOTE: The import below cantomatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 9deb06eef2f..87fa5ec0681 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -14,8 +14,8 @@ return { disable_netrw = true, -- Disable netrw hijack_netrw = true, -- Hijack netrw for nvim-tree view = { - side = 'left', - width = 30, + side = 'right', -- Position of the tree + width = 40, }, renderer = { icons = { @@ -45,4 +45,14 @@ return { } end, }, + + -- Add lazygit.nvim plugin + { + 'kdheepak/lazygit.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + cmd = { 'LazyGit' }, + keys = { + { 'gg', 'LazyGit', desc = 'Open LazyGit' }, + }, + }, } From 90188356dff71799b33e1a24ca181ab0ed947655 Mon Sep 17 00:00:00 2001 From: aryat Date: Sat, 7 Jun 2025 21:10:54 +0530 Subject: [PATCH 6/8] colorscheme changes --- init.lua | 51 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/init.lua b/init.lua index 78dd186f9d5..ce562f546b3 100644 --- a/init.lua +++ b/init.lua @@ -387,7 +387,7 @@ require('lazy').setup({ -- You can put your default mappings / updates / etc. in here -- All the info you're looking for is in `:help telescope.setup()` -- - -- defaults = { + -- defaults = { -- mappings = { -- i = { [''] = 'to_fuzzy_refine' }, -- }, @@ -397,8 +397,8 @@ require('lazy').setup({ ['ui-select'] = { require('telescope.themes').get_dropdown(), }, - }, - } + }, + } -- Enable Telescope extensions if they are installed pcall(require('telescope').load_extension, 'fzf') @@ -842,30 +842,40 @@ require('lazy').setup({ end, }, - { -- You can easily change to a different colorscheme. - -- Change the name of the colorscheme plugin below, and then - -- change the command in the config to whatever the name of that colorscheme is. - -- - -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', - priority = 1000, -- Make sure to load this before all the other start plugins. - init = function() - -- Load the colorscheme here. - -- Like many other themes, this one has different styles, and you could load - -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + -- { -- You can easily change to a different colorscheme. + -- -- Change the name of the colorscheme plugin below, and then + -- -- change the command in the config to whatever the name of that colorscheme is. + -- -- + -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. + -- 'folke/tokyonight.nvim', + -- priority = 1000, -- Make sure to load this before all the other start plugins. + -- init = function() + -- -- Load the colorscheme here. + -- -- Like many other themes, this one has different styles, and you could load + -- -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. + -- vim.cmd.colorscheme 'tokyonight-night' + + -- -- You can configure highlights by doing something like: + -- vim.cmd.hi 'Comment gui=none' + -- end, + -- }, + -- + { - -- You can configure highlights by doing something like: + 'rebelot/kanagawa.nvim', + priority = 1000, + init = function() + vim.cmd.colorscheme 'kanagawa-dragon' vim.cmd.hi 'Comment gui=none' end, - }, - + }, + -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, { -- Collection of various small independent plugins/modules 'echasnovski/mini.nvim', - config = function() + config = function() -- Better Around/Inside textobjects -- -- Examples: @@ -939,7 +949,8 @@ require('lazy').setup({ require 'kickstart.plugins.indent_line', require 'kickstart.plugins.lint', require 'kickstart.plugins.autopairs', - -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps + -- require 'kickstart.plugins.neo-tree', -- shows context of current line + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below cantomatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. From 63fe72a39c7edcb35e5a9402201b9ab81e5ff4b2 Mon Sep 17 00:00:00 2001 From: aryat Date: Sat, 7 Jun 2025 21:17:48 +0530 Subject: [PATCH 7/8] file path issue fixed --- init.lua | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/init.lua b/init.lua index ce562f546b3..c2434158269 100644 --- a/init.lua +++ b/init.lua @@ -384,21 +384,20 @@ require('lazy').setup({ -- [[ Configure Telescope ]] -- See `:help telescope` and `:help telescope.setup()` require('telescope').setup { - -- You can put your default mappings / updates / etc. in here - -- All the info you're looking for is in `:help telescope.setup()` - -- - -- defaults = { - -- mappings = { - -- i = { [''] = 'to_fuzzy_refine' }, - -- }, - -- }, - -- pickers = {} + defaults = { + preview = { + hide_on_startup = false, + }, + previewer = true, + file_ignore_patterns = {}, + path_display = { "truncate" }, + }, extensions = { ['ui-select'] = { require('telescope.themes').get_dropdown(), }, - }, - } + }, + } -- Enable Telescope extensions if they are installed pcall(require('telescope').load_extension, 'fzf') From 878f97e39bad856c6271e1ffcb31e5d2cbdc0e2a Mon Sep 17 00:00:00 2001 From: aryat Date: Sat, 21 Jun 2025 18:59:44 +0530 Subject: [PATCH 8/8] added nvim config --- init.lua | 43 ++++++++++++++++++++++++++++++------- lua/custom/plugins/init.lua | 14 +++++++++++- 2 files changed, 48 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index c2434158269..ffc92b3488c 100644 --- a/init.lua +++ b/init.lua @@ -859,16 +859,43 @@ require('lazy').setup({ -- end, -- }, -- - { - - 'rebelot/kanagawa.nvim', + { + "catppuccin/nvim", + name = "catppuccin", priority = 1000, - init = function() - vim.cmd.colorscheme 'kanagawa-dragon' - vim.cmd.hi 'Comment gui=none' + config = function() + require("catppuccin").setup({ + flavour = "mocha", -- latte, frappe, macchiato, mocha + background = { -- :h background + dark = "mocha", + }, + transparent_background = true, -- disables setting the background color + term_colors = true, -- sets terminal colors + styles = { + comments = { "italic" }, + conditionals = { "italic" }, + loops = {}, + functions = {}, + keywords = {}, + strings = {}, + variables = {}, + numbers = {}, + booleans = {}, + properties = {}, + types = {}, + operators = {}, + }, + color_overrides = { + mocha = { + base = "#000000", -- Set the background to pure black + mantle = "#000000", + crust = "#000000", + }, + }, + }) + vim.cmd.colorscheme "catppuccin" end, - }, - +}, -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 87fa5ec0681..100c7769095 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -15,7 +15,7 @@ return { hijack_netrw = true, -- Hijack netrw for nvim-tree view = { side = 'right', -- Position of the tree - width = 40, + width = 40, }, renderer = { icons = { @@ -55,4 +55,16 @@ return { { 'gg', 'LazyGit', desc = 'Open LazyGit' }, }, }, + + -- Aerial plugin to see document signatures + { + 'stevearc/aerial.nvim', + cmd = { 'AerialToggle' }, + keys = { + { 'ga', 'AerialToggle', desc = 'Toggle Aerial Outline' }, + }, + config = function() + require('aerial').setup() + end, + }, }