aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/opts/misc.lua
blob: e2280230695b542703063603401ddc6da0a5cdd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
local M = {}
local maps = require "plugins.maps"

M.gitsigns = {
  signs = {
    add = { text = "+" },
    change = { text = "~" },
    delete = { text = "-" },
    topdelete = { text = "‾" },
    changedelete = { text = "~" },
    untracked = { text = "│" },
  },

  on_attach = function(bufnr)
    maps.load("gitsigns", { buffer = bufnr })
  end,
}

M.luasnip = function (opts)
  require("luasnip").config.set_config(opts)

  -- vscode format
  require("luasnip.loaders.from_vscode").lazy_load()
  -- snipmate format
  require("luasnip.loaders.from_snipmate").lazy_load()
  -- lua format
  require("luasnip.loaders.from_lua").lazy_load()
end

return M