From e52f913172569e3b34772834dcab2c8a5d7725a3 Mon Sep 17 00:00:00 2001 From: doryan Date: Mon, 21 Oct 2024 22:01:33 +0400 Subject: [PATCH] feat(gitsign): change signs chars --- lvim/config.lua | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/lvim/config.lua b/lvim/config.lua index 61606a9..16498b0 100644 --- a/lvim/config.lua +++ b/lvim/config.lua @@ -7,16 +7,44 @@ lvim.colorscheme = "melange" lvim.builtin.breadcrumbs.active = false -lvim.lsp.automatic_servers_installation = false -lvim.lsp.automatic_configuration.skipped_servers = { "rust_analyzer", "rust-analyzer", "typst_lsp", "typst-lsp" } -require"lspconfig".tinymist.setup{ - exportPdf = "onType", - outputPath = "$root/target/$dir/$name", +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" } + require "plugins.init" require "mappings" -require "configs.autocommand" require "configs.nvimtree" require "configs.bufferline" require "configs.dropbar" @@ -26,5 +54,3 @@ require "configs.colorizer" require "configs.autotag" require "configs.prettier" require "configs.nvimufo" - -vim.lsp.inlay_hint.enable(true)