🪴 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

snippets: use mini.snippets

robin e116512d 44bbbf3b

+35 -5
+8
config/config/mini.lua
··· 111 111 require("mini.pairs").setup() 112 112 end) 113 113 augroup("VimEnter", nil, { once = true }, function() 114 + require("mini.snippets").setup({ 115 + snippets = { 116 + require("mini.snippets").gen_loader.from_lang({ silent = true }), 117 + }, 118 + }) 119 + require("mini.snippets").start_lsp_server() 120 + end) 121 + augroup("VimEnter", nil, { once = true }, function() 114 122 require("mini.splitjoin").setup() 115 123 end) 116 124 augroup("VimEnter", nil, { once = true }, function()
+9 -2
config/package.json
··· 1 1 { 2 - "name": "snippets", 2 + "name": "ivy-snippets", 3 + "engines": { 4 + "vscode": "^1.11.0" 5 + }, 3 6 "contributes": { 4 7 "snippets": [ 5 8 { ··· 18 21 "blade", 19 22 "gotexttmpl" 20 23 ], 21 - "path": "./html.json" 24 + "path": "./snippets/html.json" 25 + }, 26 + { 27 + "language": "typst", 28 + "path": "./snippets/typst.json" 22 29 } 23 30 ] 24 31 }
+3 -3
config/snippets/nix.json
··· 16 16 "description": "Nix module", 17 17 "body": [ 18 18 "{ lib, pkgs, config ... }:", 19 - "", 20 - " let cfg = config;", 19 + "let", 20 + " cfg = config.${1};", 21 21 "in {", 22 22 " config = lib.mkIf cfg.enable {", 23 - " ${1:# code}", 23 + " ${2:# code}", 24 24 " };", 25 25 "}" 26 26 ]
+15
config/snippets/typst.json
··· 1 + { 2 + "init:note": { 3 + "prefix": "i:n", 4 + "description": "insert note template", 5 + "body": [ 6 + "#import \"@preview/notes:0.1.0\": article", 7 + "", 8 + "#show: article.with(", 9 + " title: [${1:Title}],", 10 + ")", 11 + "", 12 + "= ${2:title}" 13 + ] 14 + } 15 + }