scorpio 1 рік тому
батько
коміт
e230ec8398
2 змінених файлів з 61 додано та 0 видалено
  1. 19 0
      lua/plugin-config/colorfull-win.lua
  2. 42 0
      lua/plugin-config/gitsigns.lua

+ 19 - 0
lua/plugin-config/colorfull-win.lua

@@ -0,0 +1,19 @@
+require("colorful-winsep").setup({
+  -- highlight for Window separator
+  highlight = {
+    bg = "#16161E",
+    fg = "#1F3442",
+  },
+  -- timer refresh rate
+  interval = 30,
+  -- This plugin will not be activated for filetype in the following table.
+  no_exec_files = { "packer", "TelescopePrompt", "mason", "CompetiTest", "NvimTree" },
+  -- Symbols for separator lines, the order: horizontal, vertical, top left, top right, bottom left, bottom right.
+  symbols = { "━", "┃", "┏", "┓", "┗", "┛" },
+  close_event = function()
+    -- Executed after closing the window separator
+  end,
+  create_event = function()
+    -- Executed after creating the window separator
+  end,
+})

+ 42 - 0
lua/plugin-config/gitsigns.lua

@@ -0,0 +1,42 @@
+require("gitsigns").setup({
+  signs = {
+    add          = { text = '│' },
+    change       = { text = '│' },
+    delete       = { text = '_' },
+    topdelete    = { text = '‾' },
+    changedelete = { text = '~' },
+    untracked    = { text = '┆' },
+  },
+  signcolumn = true,  -- Toggle with `:Gitsigns toggle_signs`
+  numhl      = false, -- Toggle with `:Gitsigns toggle_numhl`
+  linehl     = false, -- Toggle with `:Gitsigns toggle_linehl`
+  word_diff  = false, -- Toggle with `:Gitsigns toggle_word_diff`
+  watch_gitdir = {
+    interval = 1000,
+    follow_files = true
+  },
+  attach_to_untracked = true,
+  current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
+  current_line_blame_opts = {
+    virt_text = true,
+    virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
+    delay = 1000,
+    ignore_whitespace = false,
+  },
+  current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
+  sign_priority = 6,
+  update_debounce = 100,
+  status_formatter = nil, -- Use default
+  max_file_length = 40000, -- Disable if file is longer than this (in lines)
+  preview_config = {
+    -- Options passed to nvim_open_win
+    border = 'single',
+    style = 'minimal',
+    relative = 'cursor',
+    row = 0,
+    col = 1
+  },
+  yadm = {
+    enable = false
+  }
+})