feat(gitsign): move gitsign config to gitsign.lua

This commit is contained in:
doryan 2024-10-22 01:32:33 +04:00
parent e52f913172
commit 26f9ad46d3
2 changed files with 35 additions and 33 deletions

View File

@ -7,39 +7,6 @@
lvim.colorscheme = "melange" lvim.colorscheme = "melange"
lvim.builtin.breadcrumbs.active = false 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_servers_installation = false
lvim.lsp.automatic_configuration.skipped_servers = { "rust_analyzer" } lvim.lsp.automatic_configuration.skipped_servers = { "rust_analyzer" }
@ -50,7 +17,9 @@ require "configs.bufferline"
require "configs.dropbar" require "configs.dropbar"
require "configs.dap" require "configs.dap"
require "configs.acmp" require "configs.acmp"
require "configs.gitsigns"
require "configs.colorizer" require "configs.colorizer"
require "configs.autotag" require "configs.autotag"
require "configs.prettier" require "configs.prettier"
require "configs.nvimufo" require "configs.nvimufo"
require "configs.notify"

View File

@ -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",
},
}