浏览代码

Snippets in config dir (#661)

* Update init.lua

* Update init.lua

* Update init.lua

* Update default-config.lua
PZ31k0nauT 4 年之前
父节点
当前提交
6a09208590
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      lua/default-config.lua
  2. 2 0
      lua/lv-compe/init.lua

+ 1 - 0
lua/default-config.lua

@@ -22,6 +22,7 @@ O = {
     hl_search = false,
     transparent_window = false;
     leader_key = "space";
+    vnsip_dir = vim.fn.stdpath('config') .. "/snippets",
 
     -- @usage pass a table with your desired languages
     treesitter = {

+ 2 - 0
lua/lv-compe/init.lua

@@ -4,6 +4,8 @@
 
 local M = {}
 
+vim.g.vsnip_snippet_dir = O.vnsip_dir
+
 M.config = function()
 opt = {
     enabled = O.auto_complete,