From fee97551343f4779de630cdeff8f44581f9aa938 Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 24 Mar 2024 11:55:06 -0700 Subject: [PATCH] adding in lazygit --- init.lua | 5 +++-- lua/custom/plugins/init.lua | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 20b710e..50d6b67 100644 --- a/init.lua +++ b/init.lua @@ -567,6 +567,7 @@ require('lazy').setup({ '--offset-encoding=utf-16', '--query-driver=/home/talksik/Qt/6.6.1/Boot2Qt/raspberrypi4-64/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-*', }, + filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'hpp', 'h', 'cc' }, }, gopls = {}, -- pyright = {}, @@ -768,8 +769,8 @@ require('lazy').setup({ 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' + -- any other, such as 'tokyonight-night', 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. + vim.cmd.colorscheme 'tokyonight-storm' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 54bb7bb..8d0175c 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -34,7 +34,7 @@ return { }, config = function() -- toggle zen mode on zz - vim.api.nvim_set_keymap('n', 'zz', 'ZenMode', { noremap = true, silent = true }) + vim.api.nvim_set_keymap('n', 'zz', 'ZenMode', { noremap = true, silent = true }) end, }, @@ -84,4 +84,17 @@ return { } end, }, + + -- lazygit + { + 'kdheepak/lazygit.nvim', + dependencies = { + 'nvim-lua/plenary.nvim', + }, + config = function() + vim.keymap.set('n', 'gg', function() + vim.cmd 'LazyGit' + end, {}) + end, + }, }