From 39736c812b3dd5c468b5ae1e568352f61f5c45db Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 24 Sep 2023 10:09:21 -0400 Subject: Undotree plugin + everforest transparent bg --- init.lua | 1 - lua/ben/plugins/colorscheme.lua | 13 +++++++------ lua/ben/plugins/fugitive.lua | 19 ++++++++----------- lua/ben/plugins/undotree.lua | 8 ++++++++ 4 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 lua/ben/plugins/undotree.lua diff --git a/init.lua b/init.lua index ab60711..3465962 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,2 @@ require("ben.core") require("ben.lazy") - diff --git a/lua/ben/plugins/colorscheme.lua b/lua/ben/plugins/colorscheme.lua index 9d58a17..4caaa52 100644 --- a/lua/ben/plugins/colorscheme.lua +++ b/lua/ben/plugins/colorscheme.lua @@ -2,14 +2,15 @@ return { -- Treesitter optimized colorscheme { "neanias/everforest-nvim", - priority = 1000, version = false, + priority = 1000, config = function() - require("everforest").setup({}) - vim.cmd([[set tgc]]) -- Terminal GUI Colors - vim.cmd([[set lz]]) -- Lazy redraw - vim.cmd([[set t_Co=256]]) -- 256 Colors - vim.cmd([[colorscheme everforest]]) + require("everforest").setup({ + background = "hard", + italics = true, + transparent_background_level = 2, + }) + require("everforest").load() end, }, -- My very own colorscheme diff --git a/lua/ben/plugins/fugitive.lua b/lua/ben/plugins/fugitive.lua index 6dee028..4b0c520 100644 --- a/lua/ben/plugins/fugitive.lua +++ b/lua/ben/plugins/fugitive.lua @@ -2,15 +2,12 @@ return { "tpope/vim-fugitive", dependencies = "tpope/vim-rhubarb", -- Only enable when in a git repo - cond = function() - return vim.fn.isdirectory(".git") == 1 - end, - config = function() - vim.keymap.set("n", "gs", ":G") -- G.it S.tatus - vim.keymap.set("n", "gd", ":G difftool") -- G.it D.iff - vim.keymap.set("n", "gm", ":Gvdiffsplit!") -- G.it M.erge - vim.keymap.set("n", "gc", ":G commit") -- G.it C.ommit - vim.keymap.set("n", "gpu", ":G push") -- G.it P.ush U.pstream - vim.keymap.set("n", "gpl", ":G pull") -- G.it P.ull L.atest - end, + keys = { + { "gs", "G" }, -- G.it S.tatus + { "gd", "G difftool" }, -- G.it D.iff + { "gm", "Gvdiffsplit!" }, -- G.it M.erge + { "gc", "G commit" }, -- G.it C.ommit + { "gpu", "G push" }, -- G.it P.ush U.pstream + { "gpl", "G pull" }, -- G.it P.ull L.atest + }, } diff --git a/lua/ben/plugins/undotree.lua b/lua/ben/plugins/undotree.lua new file mode 100644 index 0000000..f5dbefc --- /dev/null +++ b/lua/ben/plugins/undotree.lua @@ -0,0 +1,8 @@ +return { + "jiaoshijie/undotree", + dependencies = { "nvim-lua/plenary.nvim" }, + config = true, + keys = { + { "u", "lua require('undotree').toggle()" }, + }, +} -- cgit v1.2.3