From 8b6e53e56c37e87692c4edb373278c7c71204922 Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 28 Jul 2025 17:34:00 +0200 Subject: [PATCH 01/12] add telescope_hoogle --- lua/plugins.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 43d8810..39ab572 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -569,6 +569,19 @@ local plugins = { vim.keymap.set({ "n", "v" }, "d", ":Linediff ", { desc = "Linediff" }) end }, + { + "luc-tielen/telescope_hoogle", + config = function () + local telescope = require('telescope') + -- telescope.setup { + -- -- opts... + -- } + telescope.load_extension('hoogle') + end, + dependencies = { + "nvim-telescope/telescope.nvim" + } + }, } return plugins From 276e72b06223526876a0fdda55477b4aa244e3f0 Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 20 Oct 2025 13:46:54 +0200 Subject: [PATCH 02/12] fix lspconfig --- lua/configs/lspconfig.lua | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index e623c84..036286c 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -44,23 +44,27 @@ local servers = { qmlls = {}, tinymist = {}, hls = {}, + c3_lsp = { + cmd = { "c3-lsp" }, + }, } local enabled = {} +-- for server, config in pairs(servers) do +-- local lsp = require("lspconfig")[server] +-- +-- local config_merged = vim.tbl_deep_extend("keep", config, default, lsp.document_config.default_config) +-- if config_merged.cmd ~= nil then +-- if vim.fn.executable(config_merged.cmd[1]) == 1 then +-- enabled[server] = config_merged +-- end +-- end +-- end + for server, config in pairs(servers) do - local lsp = require("lspconfig")[server] - - local config_merged = vim.tbl_deep_extend("keep", config, default, lsp.document_config.default_config) - if config_merged.cmd ~= nil then - if vim.fn.executable(config_merged.cmd[1]) == 1 then - enabled[server] = config_merged - end - end -end - -for server, config in pairs(enabled) do - vim.lsp.enable(server, config) + vim.lsp.config(server, config) + vim.lsp.enable(server) end From 062de1844117f930ea7cde76428aae151c9f7839 Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 28 Jul 2025 17:34:00 +0200 Subject: [PATCH 03/12] add telescope_hoogle --- lazy-lock.json | 1 + lua/plugins.lua | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/lazy-lock.json b/lazy-lock.json index b5bd74e..8dc6956 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -44,6 +44,7 @@ "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "tardis.nvim": { "branch": "main", "commit": "f050686a6c299dba95d07990550174c20aba56dd" }, "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }, + "telescope_hoogle": { "branch": "master", "commit": "14be34fd5c464e3da0992ad094f157b0b8b098f9" }, "treesj": { "branch": "main", "commit": "925b506eadd9b465e6e577bb684d86e9863a2e21" }, "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, "vim-illuminate": { "branch": "master", "commit": "0d1e93684da00ab7c057410fecfc24f434698898" }, diff --git a/lua/plugins.lua b/lua/plugins.lua index 43d8810..39ab572 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -569,6 +569,19 @@ local plugins = { vim.keymap.set({ "n", "v" }, "d", ":Linediff ", { desc = "Linediff" }) end }, + { + "luc-tielen/telescope_hoogle", + config = function () + local telescope = require('telescope') + -- telescope.setup { + -- -- opts... + -- } + telescope.load_extension('hoogle') + end, + dependencies = { + "nvim-telescope/telescope.nvim" + } + }, } return plugins From 73ab133e5c9c66ab9c69e69d25dcbf5c5ae3816b Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 20 Oct 2025 13:46:54 +0200 Subject: [PATCH 04/12] fix lspconfig --- lua/configs/lspconfig.lua | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index e623c84..036286c 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -44,23 +44,27 @@ local servers = { qmlls = {}, tinymist = {}, hls = {}, + c3_lsp = { + cmd = { "c3-lsp" }, + }, } local enabled = {} +-- for server, config in pairs(servers) do +-- local lsp = require("lspconfig")[server] +-- +-- local config_merged = vim.tbl_deep_extend("keep", config, default, lsp.document_config.default_config) +-- if config_merged.cmd ~= nil then +-- if vim.fn.executable(config_merged.cmd[1]) == 1 then +-- enabled[server] = config_merged +-- end +-- end +-- end + for server, config in pairs(servers) do - local lsp = require("lspconfig")[server] - - local config_merged = vim.tbl_deep_extend("keep", config, default, lsp.document_config.default_config) - if config_merged.cmd ~= nil then - if vim.fn.executable(config_merged.cmd[1]) == 1 then - enabled[server] = config_merged - end - end -end - -for server, config in pairs(enabled) do - vim.lsp.enable(server, config) + vim.lsp.config(server, config) + vim.lsp.enable(server) end From 6baee4b298cc3c288b1527de7de6ded3b5cfadc6 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:22:16 +0100 Subject: [PATCH 05/12] update highlights --- lua/colors/normal.lua | 14 --- lua/colors/quasimono.lua | 186 +++++++++++++++------------------------ lua/plugins.lua | 16 +--- 3 files changed, 71 insertions(+), 145 deletions(-) delete mode 100644 lua/colors/normal.lua diff --git a/lua/colors/normal.lua b/lua/colors/normal.lua deleted file mode 100644 index 24d3ff2..0000000 --- a/lua/colors/normal.lua +++ /dev/null @@ -1,14 +0,0 @@ -local custom_highlights = function(C) - return { - HopNextKey = { bg = C.text, fg = C.base, style = { "bold", "underline" } }, - HopNextKey1 = { bg = C.text, fg = C.base, style = { "bold" } }, - HopNextKey2 = { bg = C.text, fg = C.base, style = { "bold", "italic" } }, - DiagnosticUnderlineError = { style = { "undercurl" } }, - DiagnosticUnderlineWarn = { style = { "undercurl" } }, - DiagnosticUnderlineInfo = { style = { "undercurl" } }, - DiagnosticUnderlineHint = { style = { "undercurl" } }, - DiagnosticUnderlineOk = { style = { "undercurl" } }, - } -end - -return custom_highlights diff --git a/lua/colors/quasimono.lua b/lua/colors/quasimono.lua index 465bc7f..68266ef 100644 --- a/lua/colors/quasimono.lua +++ b/lua/colors/quasimono.lua @@ -1,133 +1,87 @@ local custom_highlights = function(C) local U = require("catppuccin.utils.colors") local ret = { - HopNextKey = { bg = C.text, fg = C.base, style = { "bold", "underline" } }, - HopNextKey1 = { bg = C.text, fg = C.base, style = { "bold" } }, - HopNextKey2 = { bg = C.text, fg = C.base, style = { "bold", "italic" } }, - DiagnosticUnderlineError = { style = { "undercurl" } }, - DiagnosticUnderlineWarn = { style = { "undercurl" } }, - DiagnosticUnderlineInfo = { style = { "undercurl" } }, - DiagnosticUnderlineHint = { style = { "undercurl" } }, - DiagnosticUnderlineOk = { style = { "undercurl" } }, - ["@function.call"] = { fg = U.darken(C.blue, 0.5, C.text) }, + -- fuuctions sigature & calls are blue Function = { fg = C.blue, style = { "bold" } }, + ["@function.call"] = { fg = U.darken(C.blue, 0.5, C.text) }, ["@lsp.type.function"] = { link = "@function.call" }, ["@lsp.type.method"] = { link = "@function.call" }, - ["@lsp.type.macro"] = { link = "Macro" }, - ["@Keyword.directive"] = { link = "PreProc" }, - -- ["@lsp.mod.definition"] = { bg = U.darken(C.green, .3, C.base) }, - -- Keyword = { fg = C.black, style = { "italic" } }, - Type = { fg = C.text }, - -- - -- syntax - Constant = { fg = C.text }, - String = { fg = C.text }, - Character = { fg = C.text }, - Number = { fg = C.text }, - Float = { fg = C.text }, - Boolean = { fg = C.text }, - Identifier = { fg = C.text }, - -- Function = { fg = C.text }, - Statement = { fg = C.text }, - Conditional = { fg = C.text }, - Repeat = { fg = C.text }, - Label = { fg = C.text }, - Operator = { fg = C.text }, - Keyword = { fg = C.text }, - Exception = { fg = C.text }, - PreProc = { fg = C.pink }, - Include = { fg = C.pink }, - Define = { fg = C.pink }, - Macro = { fg = C.pink }, - PreCondit = { fg = C.pink }, - StorageClass = { fg = C.text }, - Structure = { fg = C.text }, - Special = { fg = C.text }, - Typedef = { fg = C.text }, - SpecialChar = { fg = C.text }, - Tag = { fg = C.text }, - Delimiter = { fg = C.text }, - Debug = { fg = C.text }, + + -- Types are green + -- Type = { fg = U.darken(C.green, 0.8, C.black) }, + -- ["@type.python"] = { link = "Type", }, + + -- Comments should be important + Comment = { fg = C.mauve, style = {}}; + + -- differentiate between consts and mutables variable = {}, ["@lsp.mod.readonly"] = { fg = C.text }, ["@variable"] = { fg = U.darken(C.red, .5, C.text) }, - ["@keyword.modifier"] = { fg = C.yellow, style = {"italic"}} - -- ['@parameter'] = { style = { "underline"} }, + -- highly visible consts kwds + ["@keyword.modifier"] = { fg = C.yellow, style = {"italic"}}, - -- Underlined = { style = { "underline" } }, -- (preferred) text that stands out, HTML links - -- Bold = { style = { "bold" } }, - -- Italic = { style = { "italic" } }, - -- ("Ignore", below, may be invisible...) - -- Ignore = { }, -- (preferred) left blank, hidden |hl-Ignore| + -- Plugin specific + HopNextKey = { bg = C.text, fg = C.base, style = { "bold" } }, + HopNextKey1 = { link = "HopNextKey" }, + HopNextKey2 = { link = "HopNextKey" }, - -- Error = { fg = C.red }, -- (preferred) any erroneous construct - -- Todo = { bg = C.flamingo, fg = C.base, style = { "bold" } }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX - -- qfLineNr = { fg = C.yellow }, - -- qfFileName = { fg = C.blue }, - -- htmlH1 = { fg = C.pink, style = { "bold" } }, - -- htmlH2 = { fg = C.blue, style = { "bold" } }, - -- -- mkdHeading = { fg = C.peach, style = { "bold" } }, - -- -- mkdCode = { bg = C.terminal_black, fg = C.text }, - -- mkdCodeDelimiter = { bg = C.base, fg = C.text }, - -- mkdCodeStart = { fg = C.flamingo, style = { "bold" } }, - -- mkdCodeEnd = { fg = C.flamingo, style = { "bold" } }, - -- -- mkdLink = { fg = C.blue, style = { "underline" } }, - -- - -- -- debugging - -- debugPC = { bg = O.transparent_background and C.none or C.crust }, -- used for highlighting the current line in terminal-debug - -- debugBreakpoint = { bg = C.base, fg = C.overlay0 }, -- used for breakpoint colors in terminal-debug - -- -- illuminate - -- illuminatedWord = { bg = C.surface1 }, - -- illuminatedCurWord = { bg = C.surface1 }, - -- -- diff - -- diffAdded = { fg = C.green }, - -- diffRemoved = { fg = C.red }, - -- diffChanged = { fg = C.blue }, - -- diffOldFile = { fg = C.yellow }, - -- diffNewFile = { fg = C.peach }, - -- diffFile = { fg = C.blue }, - -- diffLine = { fg = C.overlay0 }, - -- diffIndexLine = { fg = C.teal }, - -- DiffAdd = { bg = U.darken(C.green, 0.18, C.base) }, -- diff mode: Added line |diff.txt| - -- DiffChange = { bg = U.darken(C.blue, 0.07, C.base) }, -- diff mode: Changed line |diff.txt| - -- DiffDelete = { bg = U.darken(C.red, 0.18, C.base) }, -- diff mode: Deleted line |diff.txt| - -- DiffText = { bg = U.darken(C.blue, 0.30, C.base) }, -- diff mode: Changed text within a changed line |diff.txt| - -- -- NeoVim - -- healthError = { fg = C.red }, - -- healthSuccess = { fg = C.teal }, - -- healthWarning = { fg = C.yellow }, - -- -- misc - -- - -- -- glyphs - -- GlyphPalette1 = { fg = C.red }, - -- GlyphPalette2 = { fg = C.teal }, - -- GlyphPalette3 = { fg = C.yellow }, - -- GlyphPalette4 = { fg = C.blue }, - -- GlyphPalette6 = { fg = C.teal }, - -- GlyphPalette7 = { fg = C.text }, - -- GlyphPalette9 = { fg = C.red }, - -- - -- -- rainbow - -- rainbow1 = { fg = C.red }, - -- rainbow2 = { fg = C.peach }, - -- rainbow3 = { fg = C.yellow }, - -- rainbow4 = { fg = C.green }, - -- rainbow5 = { fg = C.sapphire }, - -- rainbow6 = { fg = C.lavender }, - -- - -- -- csv - -- csvCol0 = { fg = C.red }, - -- csvCol1 = { fg = C.peach }, - -- csvCol2 = { fg = C.yellow }, - -- csvCol3 = { fg = C.green }, - -- csvCol4 = { fg = C.sky }, - -- csvCol5 = { fg = C.blue }, - -- csvCol6 = { fg = C.lavender }, - -- csvCol7 = { fg = C.mauve }, - -- csvCol8 = { fg = C.pink }, } + + -- base color + for _, field in ipairs({ + "Constant", + "String", + "Character", + "Number", + "Float", + "Boolean", + "Identifier", + "Statement", + "Conditional", + "Repeat", + "Label", + "Operator", + "Keyword", + "Exception", + "StorageClass", + "Structure", + "Special", + "Typedef", + "SpecialChar", + "Tag", + "Delimiter", + "Debug", + }) do + ret[field] = { fg = C.text }; + end + + -- pink + for _, field in ipairs({ + "PreProc", + "Include", + "Define", + "Macro", + "@lsp.type.macro", + "PreCondit", + "@Keyword.directive", + }) do + ret[field] = { fg = C.pink }; + end + + for _, field in ipairs({ + "DiagnosticUnderlineError", + "DiagnosticUnderlineWarn", + "DiagnosticUnderlineInfo", + "DiagnosticUnderlineHint", + "DiagnosticUnderlineOk", + }) do + ret[field] = { style = { "undercurl" } }; + end + + -- for semantic coloring from ccls local var_colors = { U.darken(C.green, .4, C.text); U.darken(C.lavender, .5, C.text); diff --git a/lua/plugins.lua b/lua/plugins.lua index 39ab572..4337e7f 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -25,24 +25,10 @@ local plugins = { name = "catppuccin", priority = 1000, opts = { - background = { -- :h background + background = { light = "latte", dark = "mocha", }, - styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): - comments = {}, -- Change the style of comments - conditionals = {}, - loops = {}, - functions = {}, - keywords = {}, - strings = {}, - variables = {}, - numbers = {}, - booleans = {}, - properties = {}, - types = { "italic" }, - operators = {}, - }, color_overrides = { mocha = { base = "#000000", From 8f4ee4b0f472b047cdd9c7e2eefd7097e72020c8 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:22:29 +0100 Subject: [PATCH 06/12] fix description in the snippet for flake --- snippets/nix.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/nix.snippets b/snippets/nix.snippets index 84e0471..10c0c44 100644 --- a/snippets/nix.snippets +++ b/snippets/nix.snippets @@ -16,7 +16,7 @@ snippet deps snippet flake { - description = "Flake utils $1"; + description = "Flake for $1"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; From cc984d5c91794b538d4496321955824e00eafeee Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:23:13 +0100 Subject: [PATCH 07/12] remove persistent-breakpoints.nvim --- lua/mappings.lua | 9 +++++---- lua/plugins.lua | 8 -------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index 5225ce9..d586114 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -139,10 +139,11 @@ function continue() end end -local pb = require('persistent-breakpoints.api') -s('n', 'b', pb.toggle_breakpoint, { desc = "Toggle breakpoint" }) -s('n', 'l', pb.set_log_point, { desc = "Set logpoint" }) -s('n', 'B', pb.set_conditional_breakpoint , { desc = "Add conditional breakpoint" }) +s('n', 'b', dap.toggle_breakpoint, { desc = "Toggle breakpoint" }) +s('n', 'B', function() + local condition = vim.fn.input("Condition: ", "", "customlist,Complete") + dap.set_breakpoint(condition) +end, { desc = "Add conditional breakpoint" }) s('n', 'w', dapui.elements.watches.add, { desc = "Add watch" }) s('v', 'w', dapui.elements.watches.add, { desc = "Add watch" }) s('n', '', dapui.toggle, { desc = "Toggle debygger UI" }) diff --git a/lua/plugins.lua b/lua/plugins.lua index 4337e7f..4f013b1 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -532,14 +532,6 @@ local plugins = { } end }, - { - 'Weissle/persistent-breakpoints.nvim', - config = function() - require('persistent-breakpoints').setup { - load_breakpoints_event = { "BufReadPost" } - } - end - }, { 'jakemason/ouroboros', dependencies = { "nvim-lua/plenary.nvim" } From 3db31580b4be8db4f5464d49d9ec0605bd6b2da5 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:24:37 +0100 Subject: [PATCH 08/12] add BartSte/nvim-project-marks --- lua/plugins.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 4f013b1..f682618 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -560,6 +560,13 @@ local plugins = { "nvim-telescope/telescope.nvim" } }, + { + 'BartSte/nvim-project-marks', + lazy = false, + config = function() + require('projectmarks').setup({}) + end + }, } return plugins From 828b4219e924c620f19ca68f6f63621adb007f59 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:25:19 +0100 Subject: [PATCH 09/12] Add plugin fredeeb/tardis.nvim --- lua/plugins.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index f682618..82f3ad2 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -560,6 +560,23 @@ local plugins = { "nvim-telescope/telescope.nvim" } }, + { + 'fredeeb/tardis.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + config = function () + require('tardis-nvim').setup { + keymap = { + ["next"] = '', -- next entry in log (older) + ["prev"] = '', -- previous entry in log (newer) + ["quit"] = 'q', -- quit all + ["revision_message"] = '', -- show revision message for current revision + ["commit"] = '', -- replace contents of origin buffer with contents of tardis buffer + }, + initial_revisions = 10, -- initial revisions to create buffers for + max_revisions = 256, -- max number of revisions to load + } + end + }, { 'BartSte/nvim-project-marks', lazy = false, From 3610aba47aeaa94ba20bab081d232a738802f3f2 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:26:10 +0100 Subject: [PATCH 10/12] Add to escape terminal mode --- lua/mappings.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/mappings.lua b/lua/mappings.lua index d586114..6048d7e 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -32,6 +32,7 @@ s('n', 'N', " Neogit ", { desc = "Open Neogit" }) -- s('x', 'p', 'p:let @+=@0:let @"=@0') s('x', 'p', 'P') s('n', 'gh', ":Ouroboros", { desc = "Go to header/implementation" }) +s('t', '', '', { desc = "Escape terminal mode"}) -- Luasnip local ls = require("luasnip") From e7ab2a9252481d1469239df9368c20bb226ed358 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:28:46 +0100 Subject: [PATCH 11/12] remove bind for lsp hover since it is already the default bind --- lua/mappings.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index 6048d7e..d868a10 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -109,7 +109,6 @@ vim.api.nvim_create_autocmd('LspAttach', { s('n', 'q', vim.diagnostic.setloclist, { buffer = ev.buf, desc = "Set location list" }) s('n', 'gD', vim.lsp.buf.declaration, { buffer = ev.buf, desc = "Goto declaration" }) s('n', 'gd', telescope.lsp_definitions, { buffer = ev.buf, desc = "Goto definition" }) - s( {'n', 'v'}, 'K', vim.lsp.buf.hover, { buffer = ev.buf, desc = "lsp Hover" }) s( {'n', 'v'}, '', dap_or(vim.lsp.buf.signature_help), { buffer = ev.buf, desc = "dap eval" }) s( {'n', 'v'}, '', From 31c8088db2b8555046252d152cc52cb36cead6e6 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Wed, 5 Nov 2025 19:30:35 +0100 Subject: [PATCH 12/12] in gitsigns: no word diff by default and add a bind to toggle --- lua/plugins.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 82f3ad2..b36f2ae 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -253,7 +253,7 @@ local plugins = { "lewis6991/gitsigns.nvim", config = function() require('gitsigns').setup({ - word_diff = true, + numhl = true, on_attach = function(bufnr) local gs = package.loaded.gitsigns @@ -310,7 +310,12 @@ local plugins = { ) map('n', 'hd', gs.diffthis, { desc = "Diff this" }) map('n', 'hD', function() gs.diffthis('~') end, { desc = "Diff this (ignore whitespace)" }) - map('n', 'td', gs.toggle_deleted, { desc = "Toggle deleted" }) + map( + "n", + "td", + function () gs.toggle_linehl() gs.toggle_word_diff() gs.toggle_deleted() end, + { desc = "toggle diff highlight" } + ) -- Text object map({ 'o', 'x' }, 'ih', ':Gitsigns select_hunk', { desc = "Select hunk" })