diff --git a/lazy-lock.json b/lazy-lock.json index cc2c796a..040aeadc 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -3,6 +3,7 @@ "blink.cmp": { "branch": "main", "commit": "022521a8910a5543b0251b21c9e1a1e989745796" }, "catppuccin": { "branch": "main", "commit": "fa42eb5e26819ef58884257d5ae95dd0552b9a66" }, "conform.nvim": { "branch": "master", "commit": "8132ec733eed3bf415b97b76797ca41b59f51d7d" }, + "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" }, "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" }, "fzf-lua": { "branch": "main", "commit": "1977a7648a264fabf453ee082e2398e38cc3b588" }, @@ -17,6 +18,7 @@ "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, "mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" }, "mini.nvim": { "branch": "main", "commit": "35e1767f4cd7dde51256eabae7349a5283a43cba" }, + "neogit": { "branch": "master", "commit": "7fb9188d87c43e33717df5514d43754375fb9f00" }, "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nvim-lspconfig": { "branch": "master", "commit": "77d3fdfb3554632c7a3b101ded643d422de7626f" }, @@ -31,5 +33,6 @@ "tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" }, "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, "undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" }, + "vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" }, "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" } } diff --git a/lua/custom/plugins/theme.lua b/lua/custom/plugins/theme.lua index 82bd6992..5e06d1ca 100644 --- a/lua/custom/plugins/theme.lua +++ b/lua/custom/plugins/theme.lua @@ -26,7 +26,7 @@ return { -- 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' + -- vim.cmd.colorscheme 'tokyonight-night' end, }, } diff --git a/lua/kickstart/plugins/gitsigns.lua b/lua/kickstart/plugins/git.lua similarity index 73% rename from lua/kickstart/plugins/gitsigns.lua rename to lua/kickstart/plugins/git.lua index 79a3552b..b5cc1f43 100644 --- a/lua/kickstart/plugins/gitsigns.lua +++ b/lua/kickstart/plugins/git.lua @@ -1,18 +1,3 @@ --- Alternatively, use `config = function() ... end` for full control over the configuration. --- If you prefer to call `setup` explicitly, use: --- { --- 'lewis6991/gitsigns.nvim', --- config = function() --- require('gitsigns').setup({ --- -- Your gitsigns configuration here --- }) --- end, --- } --- --- Here is a more advanced example where we pass configuration --- options to `gitsigns.nvim`. --- --- See `:help gitsigns` to understand what the configuration keys do return { { -- Adds git related signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', @@ -58,8 +43,18 @@ return { map('v', 'hr', function() gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' } end, { desc = 'git [r]eset hunk' }) - -- normal mode - map('n', 'hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' }) + -- normal mode"NeogitOrg/neogit", + dependencies = + { + 'nvim-lua/plenary.nvim', -- required + 'sindrets/diffview.nvim', -- optional - Diff integration + + -- Only one of these is needed. + 'nvim-telescope/telescope.nvim', -- optional + 'ibhagwan/fzf-lua', -- optional + 'echasnovski/mini.pick', -- optional + 'folke/snacks.nvim', -- optional + }, map('n', 'hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' }) map('n', 'hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' }) map('n', 'hS', gitsigns.stage_buffer, { desc = 'git [S]tage buffer' }) map('n', 'hu', gitsigns.stage_hunk, { desc = 'git [u]ndo stage hunk' }) @@ -76,5 +71,23 @@ return { end, }, }, + { + 'tpope/vim-fugitive', + cmd = 'Git', + }, + { + 'NeogitOrg/neogit', + dependencies = { + 'nvim-lua/plenary.nvim', -- required + 'sindrets/diffview.nvim', -- optional - Diff integration + 'ibhagwan/fzf-lua', -- optional + }, + opts = { + integrations = { + diffview = true, + fzf_lua = true, + }, + }, + }, } -- vim: ts=2 sts=2 sw=2 et diff --git a/lua/kickstart/plugins/tokyonight.lua b/lua/kickstart/plugins/tokyonight.lua deleted file mode 100644 index 1b32f791..00000000 --- a/lua/kickstart/plugins/tokyonight.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - { -- 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. - config = function() - ---@diagnostic disable-next-line: missing-fields - require('tokyonight').setup { - styles = { - comments = { italic = false }, -- Disable italics in comments - }, - } - - -- 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' - end, - }, -} --- vim: ts=2 sts=2 sw=2 et diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index 63f82b36..e4b79bdb 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -22,7 +22,7 @@ require('lazy').setup({ -- modular approach: using `require 'path/name'` will -- include a plugin definition from file lua/path/name.lua - require 'kickstart/plugins/gitsigns', + require 'kickstart/plugins/git', require 'kickstart/plugins/which-key', -- require 'kickstart/plugins/telescope', require 'kickstart/plugins/fzf-lua',