From 26f9ad46d375c5b0d8d45f27abaeecfdafff8cb6 Mon Sep 17 00:00:00 2001 From: doryan Date: Tue, 22 Oct 2024 01:32:33 +0400 Subject: [PATCH] feat(gitsign): move gitsign config to gitsign.lua --- lvim/config.lua | 35 ++--------------------------------- lvim/lua/configs/gitsigns.lua | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 33 deletions(-) create mode 100644 lvim/lua/configs/gitsigns.lua diff --git a/lvim/config.lua b/lvim/config.lua index 16498b0..ca71047 100644 --- a/lvim/config.lua +++ b/lvim/config.lua @@ -7,39 +7,6 @@ lvim.colorscheme = "melange" lvim.builtin.breadcrumbs.active = false -lvim.builtin.gitsigns.opts.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", - }, -} - lvim.lsp.automatic_servers_installation = false lvim.lsp.automatic_configuration.skipped_servers = { "rust_analyzer" } @@ -50,7 +17,9 @@ require "configs.bufferline" require "configs.dropbar" require "configs.dap" require "configs.acmp" +require "configs.gitsigns" require "configs.colorizer" require "configs.autotag" require "configs.prettier" require "configs.nvimufo" +require "configs.notify" diff --git a/lvim/lua/configs/gitsigns.lua b/lvim/lua/configs/gitsigns.lua new file mode 100644 index 0000000..cad8495 --- /dev/null +++ b/lvim/lua/configs/gitsigns.lua @@ -0,0 +1,33 @@ +lvim.builtin.gitsigns.opts.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", + }, +} +