From 4e83243ca18036bfacfb7df00220ca529c7698bf Mon Sep 17 00:00:00 2001 From: Belal Elsabbagh Date: Sun, 1 Feb 2026 09:15:43 +0200 Subject: [PATCH] changed to snacks lg --- .config/nvim/lua/plugins/lazygit.lua | 19 --------------- .config/nvim/lua/plugins/mason.lua | 22 +++++++---------- .config/nvim/lua/plugins/snacks.lua | 35 ++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 33 deletions(-) delete mode 100644 .config/nvim/lua/plugins/lazygit.lua diff --git a/.config/nvim/lua/plugins/lazygit.lua b/.config/nvim/lua/plugins/lazygit.lua deleted file mode 100644 index 5459440..0000000 --- a/.config/nvim/lua/plugins/lazygit.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - 'kdheepak/lazygit.nvim', - lazy = true, - cmd = { - 'LazyGit', - 'LazyGitConfig', - 'LazyGitCurrentFile', - 'LazyGitFilter', - 'LazyGitFilterCurrentFile', - }, - - dependencies = { - 'nvim-lua/plenary.nvim', - }, - - keys = { - { 'gg', 'LazyGit', desc = 'LazyGit' }, - }, -} diff --git a/.config/nvim/lua/plugins/mason.lua b/.config/nvim/lua/plugins/mason.lua index 40b90d6..4ff28e4 100644 --- a/.config/nvim/lua/plugins/mason.lua +++ b/.config/nvim/lua/plugins/mason.lua @@ -1,18 +1,12 @@ return { - 'williamboman/mason.nvim', + 'mason-org/mason.nvim', opts = { - ensure_installed = { - 'typescript-language-server', - 'biome', - 'svelte-language-server', - 'vue-language-server', - 'gopls', - 'rust-analyzer', - 'stylua', - 'html-lsp', - 'ruff', - 'mypy', - 'pyright', - }, + ui = { + icons = { + package_installed = "✓", + package_pending = "➜", + package_uninstalled = "✗" + } + } }, } diff --git a/.config/nvim/lua/plugins/snacks.lua b/.config/nvim/lua/plugins/snacks.lua index d65e4c3..508335d 100644 --- a/.config/nvim/lua/plugins/snacks.lua +++ b/.config/nvim/lua/plugins/snacks.lua @@ -9,6 +9,41 @@ return { timeout = 3000, }, git = { enabled = true }, + ---@class snacks.lazygit.Config: snacks.terminal.Opts + ---@field args? string[] + ---@field theme? snacks.lazygit.Theme + lazygit = { + -- automatically configure lazygit to use the current colorscheme + -- and integrate edit with the current neovim instance + configure = true, + -- extra configuration for lazygit that will be merged with the default + -- snacks does NOT have a full yaml parser, so if you need `"test"` to appear with the quotes + -- you need to double quote it: `"\"test\""` + config = { + os = { editPreset = "nvim-remote" }, + gui = { + -- set to an empty string "" to disable icons + nerdFontsVersion = "3", + }, + }, + theme_path = vim.fs.normalize(vim.fn.stdpath("cache") .. "/lazygit-theme.yml"), + -- Theme for lazygit + theme = { + [241] = { fg = "Special" }, + activeBorderColor = { fg = "MatchParen", bold = true }, + cherryPickedCommitBgColor = { fg = "Identifier" }, + cherryPickedCommitFgColor = { fg = "Function" }, + defaultFgColor = { fg = "Normal" }, + inactiveBorderColor = { fg = "FloatBorder" }, + optionsTextColor = { fg = "Function" }, + searchingActiveBorderColor = { fg = "MatchParen", bold = true }, + selectedLineBgColor = { bg = "Visual" }, -- set to `default` to have no background colour + unstagedChangesColor = { fg = "DiagnosticError" }, + }, + win = { + style = "lazygit", + }, + }, picker = { enabled = true }, quickfile = { enabled = true }, words = { enabled = true },