From 72300e42af52b681d6a3096e2bf01d206aa24984 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 24 Jun 2024 10:51:47 +0200 Subject: [PATCH] nvim: fix gitsigns --- home/config/nvim/plugins/gitsigns.fnl | 31 ++++++--------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/home/config/nvim/plugins/gitsigns.fnl b/home/config/nvim/plugins/gitsigns.fnl index ae701af..29ee6bf 100644 --- a/home/config/nvim/plugins/gitsigns.fnl +++ b/home/config/nvim/plugins/gitsigns.fnl @@ -1,33 +1,14 @@ (let [gitsigns (require :gitsigns) set-bufvar vim.api.nvim_buf_set_var] - (gitsigns.setup {:signs {:add {:hl :GitSignsAdd - :text "│" - :numhl :GitSignsAddNr - :linehl :GitSignsAddLn} - :change {:hl :GitSignsChange - :text "│" - :numhl :GitSignsChangeNr - :linehl :GitSignsChangeLn} - :delete {:hl :GitSignsDelete - :text "_" - :numhl :GitSignsDeleteNr - :linehl :GitSignsDeleteLn} - :topdelete {:hl :GitSignsDelete - :text "‾" - :numhl :GitSignsDeleteNr - :linehl :GitSignsDeleteLn} - :changedelete {:hl :GitSignsChange - :text "~" - :numhl :GitSignsChangeNr - :linehl :GitSignsChangeLn} - :untracked {:hl :GitSignsUntracked - :text "┆" - :numhl :GitSignsUntrackedNr - :linehl :GitSignsUntrackedLn}} + (gitsigns.setup {:signs {:add {:text "│"} + :change {:text "│"} + :delete {:text "_"} + :topdelete {:text "‾"} + :changedelete {:text "~"} + :untracked {:text "┆"}} :numhl false :linehl false :diff_opts {:internal true} :preview_config {:border :rounded} :on_attach (fn [bufnr] (set-bufvar bufnr :nifoc_gitsigns_enabled 1))})) -