diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-04-27 10:50:11 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-04-27 10:50:11 +0200 |
| commit | fb232c9d2ed30d8046b25e33577b584fe61527e8 (patch) | |
| tree | 2a6a11e8c2f286b98a5054bb4fa536ed31a55efc | |
| parent | 5c7340c33da34ae5bde0633609ef98a75f1c4c57 (diff) | |
| download | dotfiles-fb232c9d2ed30d8046b25e33577b584fe61527e8.tar.gz dotfiles-fb232c9d2ed30d8046b25e33577b584fe61527e8.zip | |
Moved git stuff to gitsigns.lua and added more options for how the signs should look
| -rw-r--r-- | lua/plugins/gitsigns.lua | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index 91fa65b..dafeece 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -1 +1,48 @@ -require('gitsigns').setup() +require("gitsigns").setup({ + keymaps = {}, + 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 = "GitSignsDelete", + text = "~", + numhl = "GitSignsChangeNr", + linehl = "GitSignsChangeLn", + }, + }, + current_line_blame = true, + }) + +vim.api.nvim_command("highlight DiffAdd guibg=none guifg=#21c7a8") +vim.api.nvim_command("highlight DiffModified guibg=none guifg=#82aaff") +vim.api.nvim_command("highlight DiffDelete guibg=none guifg=#fc514e") +vim.api.nvim_command("highlight DiffText guibg=none guifg=#fc514e") +vim.cmd([[ +hi link GitSignsAdd DiffAdd +hi link GitSignsChange DiffModified +hi link GitSignsDelete DiffDelete +hi link GitSignsTopDelete DiffDelete +hi link GitSignsChangedDelete DiffDelete +]]) |
