From eb3d0494a292d1c0823bc95c2b1195e08c6d06a1 Mon Sep 17 00:00:00 2001 From: pml68 Date: Wed, 22 May 2024 23:57:49 +0200 Subject: feat: remove UndoTree and fugitive.vim plugins --- lua/pml68/plugins.lua | 19 ++----------------- lua/pml68/remap.lua | 6 ------ 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index 62abb7f..aff3802 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -3,7 +3,7 @@ local plugins = { { "brenoprata10/nvim-highlight-colors", event = "BufReadPost", - config = function () + config = function() require("nvim-highlight-colors").setup({ render = 'virtual' }) @@ -65,16 +65,7 @@ local plugins = { require("toggleterm").setup(opts) end }, - --Undotree - { - "mbbill/undotree", - cmd = "UndotreeToggle", - }, --Git - { - "tpope/vim-fugitive", - event = "BufReadPre" - }, { "lewis6991/gitsigns.nvim", event = "BufReadPost", @@ -90,13 +81,7 @@ local plugins = { on_attach = function(bufnr) local gs = package.loaded.gitsigns - local function map(mode, l, r, opts) - opts = opts or {} - opts.buffer = bufnr - vim.keymap.set(mode, l, r, opts) - end - - map("n", "gb", gs.blame_line) + vim.keymap.set("n", "gb", gs.blame_line, { buffer = bufnr }) end, }, config = function(_, opts) diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index c21fbb2..8eb5ce4 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -20,12 +20,6 @@ vim.keymap.set("n", "", "k") vim.keymap.set("n", "ll", "VimtexCompile") vim.keymap.set("n", "vl", "VimtexView") --- Undotree -vim.keymap.set("n", "u", "UndotreeToggle") - --- Gitsigns -vim.keymap.set("n", "gB", "Git blame") - -- Screenkey vim.keymap.set("n", "sk", "Screenkey") -- cgit v1.2.3