🔒 Backup for my config files
dotfiles
0
fork

Configure Feed

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

remove snippets

+18 -352
+8
.config/nvim/lua/plugins/flash.lua
··· 1 + return { 2 + "folke/flash.nvim", 3 + opts = { 4 + modes = { 5 + char = { keys = { "f", "F", "t", "T" } }, 6 + }, 7 + }, 8 + }
-4
.config/nvim/lua/plugins/mini_icons.lua
··· 1 1 return { 2 2 "nvim-mini/mini.icons", 3 3 opts = { 4 - default = {}, 5 - filetype = {}, 6 - lsp = {}, 7 - os = {}, 8 4 9 5 directory = { 10 6 src = { glyph = "󱧶" },
+10 -17
.config/nvim/lua/plugins/mini_surround.lua
··· 1 1 return { 2 - { 3 - "nvim-mini/mini.surround", 4 - opts = { 5 - mappings = { 6 - add = ";;", 7 - delete = ";d", 8 - find = ";f", 9 - find_left = ";F", 10 - highlight = ";h", 11 - replace = ";r", 12 - update_n_lines = ";n", 13 - }, 2 + "nvim-mini/mini.surround", 3 + opts = { 4 + mappings = { 5 + add = ";;", 6 + delete = ";d", 7 + find = ";f", 8 + find_left = ";F", 9 + highlight = ";h", 10 + replace = ";r", 11 + update_n_lines = ";n", 14 12 }, 15 - }, 16 - 17 - { 18 - "folke/flash.nvim", 19 - opts = { modes = { char = { keys = { "f", "F", "t", "T" } } } }, 20 13 }, 21 14 }
-29
.config/nvim/snippets/all.json
··· 1 - { 2 - "Tree view": { 3 - "prefix": "llt", 4 - "description": "Snippet for creating a simple file tree view  ", 5 - "body": [ 6 - "${1:Root Directory/}", 7 - "│", 8 - "├── ${2:Level 1 Nested Directory/}", 9 - "│ └── ${3:Level 2 Nested Directory/}", 10 - "│", 11 - "└── README.md" 12 - ] 13 - }, 14 - 15 - "Tree view inside a codeblock": { 16 - "prefix": "lltcb", 17 - "description": "Snippet for creating a simple file tree view inside a codeblock  ", 18 - "body": [ 19 - "```plaintext", 20 - "${1:Root Directory/}", 21 - "│", 22 - "├── ${2:Level 1 Nested Directory/}", 23 - "│ └── ${3:Level 2 Nested Directory/}", 24 - "│", 25 - "└── README.md", 26 - "```" 27 - ] 28 - } 29 - }
-30
.config/nvim/snippets/languages/gleam.json
··· 1 - { 2 - "Tuple": { 3 - "prefix": "tp", 4 - "description": "Tuple", 5 - "body": [ 6 - "#($1, $2)" 7 - ] 8 - }, 9 - "Let assert Ok": { 10 - "prefix": "la", 11 - "description": "Let assert", 12 - "body": [ 13 - "let assert Ok(${1:_}) = " 14 - ] 15 - }, 16 - "Try": { 17 - "prefix": "try", 18 - "description": "Try", 19 - "body": [ 20 - "use $1 <- result.try($2)" 21 - ] 22 - }, 23 - "Replace Error": { 24 - "prefix": "re", 25 - "description": "Replace error", 26 - "body": [ 27 - "|> result.replace_error($1)" 28 - ] 29 - } 30 - }
-25
.config/nvim/snippets/languages/go.json
··· 1 - { 2 - "Handle errors": { 3 - "prefix": "iferr", 4 - "description": "Checks if there is an error  ", 5 - "body": ["if err != nil {", " $0", "}"] 6 - }, 7 - 8 - "Add package and func main": { 9 - "prefix": "ma", 10 - "description": "Add Package main and func main() 󰊕", 11 - "body": ["package main", "", "func main() {", " $0", "}"] 12 - }, 13 - 14 - "Pointer to Testing.T": { 15 - "prefix": "tt", 16 - "description": "A pointer to testing.T 󰙨", 17 - "body": ["t *testing.T"] 18 - }, 19 - 20 - "Got and Want": { 21 - "prefix": "gw", 22 - "description": "got and want snippet for tests 󰙨", 23 - "body": ["got := $1", "want := $2", "", "if got != want {", " $0", "}"] 24 - } 25 - }
-25
.config/nvim/snippets/languages/javascript.json
··· 1 - { 2 - "Console Clear": { 3 - "prefix": "cc", 4 - "description": "Clears the Console 󰆍 ", 5 - "body": ["console.clear()"] 6 - }, 7 - 8 - "Add Documentation": { 9 - "prefix": "jsd", 10 - "description": "Add Javascript Documentation  ", 11 - "body": ["/**", " * $1", " * ", " * $2", " * ", " */ "] 12 - }, 13 - 14 - "Add Inline Documentation": { 15 - "prefix": "ijsd", 16 - "description": "Add Inline Javascript Documentation  ", 17 - "body": ["/** $1 */"] 18 - }, 19 - 20 - "Add Codeblock": { 21 - "prefix": "cdb", 22 - "description": "Add CodeBlock to documentation  ", 23 - "body": ["```$1", "* ", "* ", "* ```"] 24 - } 25 - }
-29
.config/nvim/snippets/languages/json.json
··· 1 - { 2 - "Basic Snippet Template": { 3 - "prefix": "newSnippet", 4 - "description": "Adds a new snippet 󰘦 ", 5 - "body": [ 6 - "{", 7 - "\"${1:snippetname}\": {", 8 - " \"prefix\": \"$2\",", 9 - " \"description\": \"$3\",", 10 - " \"body\": [\"$4\"]", 11 - "}$0", 12 - "}" 13 - ] 14 - }, 15 - 16 - "Add a new Snippet to the list": { 17 - "prefix": "addSnippet", 18 - "description": "Adds a new snippet in the file 󰘦 ", 19 - "body": [ 20 - ",", 21 - "", 22 - "\"${1:snippetname}\": {", 23 - " \"prefix\": \"$2\",", 24 - " \"description\": \"$3\",", 25 - " \"body\": [\"$4\"]", 26 - "}$0" 27 - ] 28 - } 29 - }
-25
.config/nvim/snippets/languages/typescript.json
··· 1 - { 2 - "Console Clear": { 3 - "prefix": "cc", 4 - "description": "Clears the Console 󰆍 ", 5 - "body": ["console.clear()"] 6 - }, 7 - 8 - "Add Documentation": { 9 - "prefix": "jsd", 10 - "description": "Add Typescript Documentation  ", 11 - "body": ["/**", " * $1", " * ", " * $2", " * ", " */ "] 12 - }, 13 - 14 - "Add Inline Documentation": { 15 - "prefix": "ijsd", 16 - "description": "Add Typescript Documentation ", 17 - "body": ["/** $1 */"] 18 - }, 19 - 20 - "Add Codeblock": { 21 - "prefix": "cdb", 22 - "description": "Add CodeBlock to documentation  ", 23 - "body": ["```$1", "* ", "* ", "* ```"] 24 - } 25 - }
-39
.config/nvim/snippets/languages/zig.json
··· 1 - { 2 - "GeneralPurposeAllocator": { 3 - "prefix": "gpa", 4 - "description": "Boilerplate for a Debug and SPM memory allocators ", 5 - "body": [ 6 - "var gpa: std.heap.DebugAllocator(.{}) = .init;", 7 - "const allocator, const is_debug = switch (builtin.mode) {", 8 - " .Debug, .ReleaseSafe => .{ gpa.allocator(), true },", 9 - " .ReleaseFast, .ReleaseSmall => .{ std.heap.smp_allocator, false },", 10 - "};", 11 - "", 12 - "defer if (is_debug) {", 13 - " _ = gpa.deinit();", 14 - "};", 15 - "", 16 - "" 17 - ] 18 - }, 19 - 20 - "String": { 21 - "prefix": "str", 22 - "description": "Shortcut to a `[] const u8` type 󰅨", 23 - "body": ["[]const u8"] 24 - }, 25 - 26 - "Buffer": { 27 - "prefix": "buf", 28 - "description": "Standard u8 buffer", 29 - "body": ["var ${1:buf}: [${2:1024}]u8 = undefined;"] 30 - }, 31 - 32 - "Horizontal Ruler": { 33 - "prefix": "hr", 34 - "description": "Horizontal Ruler", 35 - "body": [ 36 - "// -------------------------------------------------------------------------" 37 - ] 38 - } 39 - }
-43
.config/nvim/snippets/package.json
··· 1 - { 2 - "name": "personal-snippets", 3 - "contributes": { 4 - "snippets": [ 5 - { 6 - "language": "all", 7 - "path": "./all.json" 8 - }, 9 - { 10 - "language": "all", 11 - "path": "./utils/box-drawing-characters.json" 12 - }, 13 - { 14 - "language": "all", 15 - "path": "./utils/blocks.json" 16 - }, 17 - { 18 - "language": "json", 19 - "path": "./languages/json.json" 20 - }, 21 - { 22 - "language": "javascript", 23 - "path": "./languages/javascript.json" 24 - }, 25 - { 26 - "language": "typescript", 27 - "path": "./languages/typescript.json" 28 - }, 29 - { 30 - "language": "go", 31 - "path": "./languages/go.json" 32 - }, 33 - { 34 - "language": "zig", 35 - "path": "./languages/zig.json" 36 - }, 37 - { 38 - "language": "gleam", 39 - "path": "./languages/gleam.json" 40 - } 41 - ] 42 - } 43 - }
-7
.config/nvim/snippets/utils/blocks.json
··· 1 - { 2 - "Block": { 3 - "prefix": "blk", 4 - "description": "Block", 5 - "body": ["${1|█,▒,░|}"] 6 - } 7 - }
-79
.config/nvim/snippets/utils/box-drawing-characters.json
··· 1 - { 2 - "Horizontal": { 3 - "prefix": "box_h", 4 - "description": "", 5 - "body": ["${1|─,━,┄,┅,┈,┉,╌,╍,═|}"] 6 - }, 7 - 8 - "Vertical": { 9 - "prefix": "box_v", 10 - "description": "", 11 - "body": ["${1|│,┃,┆,┇,┊,┋,╎,╏,║|}"] 12 - }, 13 - 14 - "Vertical and Horizontal": { 15 - "prefix": "box_v_h", 16 - "description": "", 17 - "body": ["${1|┼,┽,┾,┿,╀,╁,╂,╃,╄,╅,╆,╇,╈,╉,╊,╋,╪,╫,╬|}"] 18 - }, 19 - 20 - "Down and Right": { 21 - "prefix": "box_dr", 22 - "description": "", 23 - "body": ["${1|┌,┍,┎,┏,╒,╓,╔,╭|}"] 24 - }, 25 - 26 - "Down and Left": { 27 - "prefix": "box_dl", 28 - "description": "", 29 - "body": ["${1|┐,┑,┒,┓,╕,╖,╗,╮|}"] 30 - }, 31 - 32 - "Up and Right": { 33 - "prefix": "box_ur", 34 - "description": "", 35 - "body": ["${1|└,┕,┖,┗,╘,╙,╚,╰|}"] 36 - }, 37 - 38 - "Up and Left": { 39 - "prefix": "box_ul", 40 - "description": "", 41 - "body": ["${1|┘,┙,┚,┛,╛,╜,╝,╯|}"] 42 - }, 43 - 44 - "Vertical and Right": { 45 - "prefix": "box_v_r", 46 - "description": "", 47 - "body": ["${1|├,┝,┞,┟,┠,┡,┢,┣,╞,╟,╠|}"] 48 - }, 49 - 50 - "Vertical and Left": { 51 - "prefix": "box_v_l", 52 - "description": "", 53 - "body": ["${1|┤,┥,┦,┧,┨,┩,┪,┫,╡,╢,╣|}"] 54 - }, 55 - 56 - "Horizontal and Up": { 57 - "prefix": "box_h_u", 58 - "description": "", 59 - "body": ["${1|┴,┵,┶,┷,┸,┹,┺,┻,╧,╨,╩|}"] 60 - }, 61 - 62 - "Horizontal and Down": { 63 - "prefix": "box_h_d", 64 - "description": "", 65 - "body": ["${1|┬,┭,┮,┯,┰,┱,┲,┳,╤,╥,╦|}"] 66 - }, 67 - 68 - "Diagonal": { 69 - "prefix": "box_diag", 70 - "description": "", 71 - "body": ["${1|╱,╲,╳|}"] 72 - }, 73 - 74 - "Directions": { 75 - "prefix": "box_dir", 76 - "description": "", 77 - "body": ["${1|╴,╵,╶,╷,╸,╹,╺,╻,╼,╽,╾,╿|}"] 78 - } 79 - }