all repos

init.lua @ 0bd687c8b69605fa1c7c88222354158b1c2de2f8

my nvim config
1 files changed, 5 insertions(+), 1 deletions(-)
fix snippets support
Author: neoteny ss2316544@gmail.com
Committed at: 2021-11-28 12:23:25 +0200
Parent: 0acc317
M lua/plugin/cmp.lua

@@ -3,6 +3,10 @@

function M.setup() local cmp = require "cmp" + require("luasnip/loaders/from_vscode").lazy_load { + paths = { "~/.local/share/nvim/site/pack/packer/start/friendly-snippets" }, + } + cmp.event:on("confirm_done", require("nvim-autopairs.completion.cmp").on_confirm_done()) cmp.setup { snippet = {

@@ -53,7 +57,7 @@ sources = {

{ name = "nvim_lua", max_item_count = 5 }, { name = "nvim_lsp", max_item_count = 8 }, { name = "buffer", keyword_length = 4, max_item_count = 5 }, - { name = "luasnip", keyword_length = 2, max_item_count = 4 }, + { name = "luasnip", max_item_count = 4, keyword_length = 2 }, }, experimental = { ghost_text = true,