From 03427b87604b573f2fd4c2683de378e4806f86fc Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Tue, 14 Dec 2021 18:45:05 -0500 Subject: [PATCH] add impatient fix te --- init.lua | 1 + lua/user/bufferline.lua | 8 ++++---- lua/user/impatient.lua | 6 ++++++ lua/user/keymaps.lua | 4 ---- lua/user/plugins.lua | 1 + 5 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 lua/user/impatient.lua diff --git a/init.lua b/init.lua index 72da14c..459f65f 100644 --- a/init.lua +++ b/init.lua @@ -14,3 +14,4 @@ require "user.bufferline" require "user.lualine" require "user.toggleterm" require "user.project" +require "user.impatient" diff --git a/lua/user/bufferline.lua b/lua/user/bufferline.lua index 81015c5..7d98cf0 100644 --- a/lua/user/bufferline.lua +++ b/lua/user/bufferline.lua @@ -92,12 +92,12 @@ bufferline.setup { }, close_button = { - guifg = { attribute = "fg", highlight = "TabLineSel" }, - guibg = { attribute = "bg", highlight = "TabLineSel" }, + guifg = { attribute = "fg", highlight = "TabLine" }, + guibg = { attribute = "bg", highlight = "TabLine" }, }, close_button_visible = { - guifg = { attribute = "fg", highlight = "TabLineSel" }, - guibg = { attribute = "bg", highlight = "TabLineSel" }, + guifg = { attribute = "fg", highlight = "TabLine" }, + guibg = { attribute = "bg", highlight = "TabLine" }, }, -- close_button_selected = { -- guifg = {attribute='fg',highlight='TabLineSel'}, diff --git a/lua/user/impatient.lua b/lua/user/impatient.lua new file mode 100644 index 0000000..84419e0 --- /dev/null +++ b/lua/user/impatient.lua @@ -0,0 +1,6 @@ +local status_ok, impatient = pcall(require, "impatient") +if not status_ok then + return +end + +impatient.enable_profile() diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 5b07011..bf8afd8 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -67,9 +67,5 @@ keymap("x", "", ":move '<-2gv-gv", opts) -- keymap("t", "", "k", term_opts) -- keymap("t", "", "l", term_opts) --- Comment -keymap("n", "/", "lua require('Comment').toggle()", opts) -keymap("v", "/", ":lua require(\"Comment.api\").gc(vim.fn.visualmode())", opts) - -- Nvimtree keymap("n", "e", ":NvimTreeToggle", opts) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 87a88a5..5588703 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -53,6 +53,7 @@ return packer.startup(function(use) use 'nvim-lualine/lualine.nvim' use "akinsho/toggleterm.nvim" use "ahmedkhalf/project.nvim" + use 'lewis6991/impatient.nvim' -- Colorschemes -- use "lunarvim/colorschemes" -- A bunch of colorschemes you can try out