From d8b8a9b3033749dc8bacaa33fcd4dc9577560955 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 29 Jan 2024 16:20:26 +0100 Subject: [PATCH] brighten line numbers --- lua/weeheavy/plugins/lazygit.lua | 29 +++++++++++++++++++++++++++++ lua/weeheavy/plugins/tokyonight.lua | 7 ++++++- lua/weeheavy/remap.lua | 1 + 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 lua/weeheavy/plugins/lazygit.lua diff --git a/lua/weeheavy/plugins/lazygit.lua b/lua/weeheavy/plugins/lazygit.lua new file mode 100644 index 0000000..5084a40 --- /dev/null +++ b/lua/weeheavy/plugins/lazygit.lua @@ -0,0 +1,29 @@ +-- Git UI +-- https://github.com/kdheepak/lazygit.nvim +return { + "kdheepak/lazygit.nvim", + lazy = true, + event = "VeryLazy", + dependencies = { + "nvim-lua/plenary.nvim", + }, + --config = function() + -- local oil = require("oil") + -- oil.setup({ + -- default_file_explorer = true, + -- columns = { + -- --"size", + -- "icon", + -- }, + -- view_options = { + -- show_hidden = true, + -- }, + -- keymaps = { + -- -- This should be matched to the open action in remap.lua + -- ["e"] = "actions.close", + -- [""] = "actions.select_vsplit", + -- [""] = "actions.select_split", + -- }, + -- }) + --end, +} diff --git a/lua/weeheavy/plugins/tokyonight.lua b/lua/weeheavy/plugins/tokyonight.lua index e22f002..18b27b8 100644 --- a/lua/weeheavy/plugins/tokyonight.lua +++ b/lua/weeheavy/plugins/tokyonight.lua @@ -6,6 +6,7 @@ return { opts = {}, config = function() local tokyonight = require("tokyonight") + local util = require("tokyonight.util") tokyonight.setup({ styles = { comments = { italic = true }, @@ -16,8 +17,12 @@ return { -- Better visible visual selection background color colors.bg_visual = "#e82a86" end, - -- Remove borders from Telescope windows on_highlights = function(hl, c) + -- Brighter line numbers + hl.LineNr = { + fg = util.darken(c.teal, 0.6), + } + -- Remove borders from Telescope windows local prompt = "#4e3e6c" hl.TelescopeNormal = { bg = c.bg_dark, diff --git a/lua/weeheavy/remap.lua b/lua/weeheavy/remap.lua index 4ca7f51..73c9a59 100644 --- a/lua/weeheavy/remap.lua +++ b/lua/weeheavy/remap.lua @@ -41,6 +41,7 @@ vim.keymap.set( ) vim.keymap.set("n", "glf", ":Telescope git_bcommits", { noremap = true, desc = "Git log (this file)" }) vim.keymap.set("n", "gdp", ":Gitsigns diffthis", { noremap = true, desc = "Git diff previous (this file)" }) +vim.keymap.set("n", "gg", ":LazyGitCurrentFile", { noremap = true, desc = "LazyGit" }) -- Remapping of existing Vim key binds vim.keymap.set("n", "w", "W") -- skip punctuation when moving to start of next word