aboutsummaryrefslogblamecommitdiff
path: root/lua/plugins/opts/misc.lua
blob: a7cbafab7eca58e0e568fbbca343af40033da2f2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
            
                                    

              







                                              
 


                                                         

 

                                                  
 





                                                            

   
        
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