🔒 Backup for my config files
dotfiles
0
fork

Configure Feed

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

noop

+204 -205
+8 -18
.config/nvim/lua/config/keymaps.lua
··· 1 + local map = vim.keymap.set 1 2 local opts = { noremap = true, silent = true } 2 3 3 4 -- Quickly restart the Lsp Server 4 - vim.keymap.set("n", "<leader>uu", "<cmd>LspRestart<cr>") 5 + map("n", "<leader>uu", "<cmd>lsp restart<cr>") 5 6 6 7 -- Exit INSERT mode by double tapping `j` 7 - vim.keymap.set("i", "jj", "<esc>", opts) 8 - 9 - -- Quickly insert a pipeline 10 - vim.keymap.set("i", "<C-p>", "<esc>A<C-j>|> ", opts) 8 + map("i", "jj", "<esc>", opts) 11 9 12 10 -- Increment/decrement 13 - vim.keymap.set("n", "+", "<C-a>", opts) 14 - vim.keymap.set("n", "-", "<C-x>", opts) 11 + map("n", "+", "<C-a>", opts) 12 + map("n", "-", "<C-x>", opts) 15 13 16 14 -- Select all 17 - vim.keymap.set("n", "<C-a>", "gg<S-v>G", opts) 15 + map("n", "<C-a>", "gg<S-v>G", opts) 18 16 19 17 -- Open quicker.lua 20 - vim.keymap.set("n", "<leader>q", function() 21 - require("quicker").toggle() 18 + map("n", "<leader>q", function() 19 + require("quicker").toggle() 22 20 end, { desc = "Toggle quickfix" }) 23 - 24 - -- Markdown related 25 - vim.keymap.set( 26 - "n", 27 - "<leader>mm", 28 - "<cmd>LspRestart marksman<cr>", 29 - { noremap = true, silent = true, desc = "Restart marksman lsp" } 30 - )
+3 -3
.config/nvim/lua/config/options.lua
··· 4 4 g.snacks_animate = true 5 5 6 6 opt.listchars = { 7 - tab = " ", 8 - trail = " ", 9 - nbsp = " ", 7 + tab = " ", 8 + trail = " ", 9 + nbsp = " ", 10 10 } 11 11 12 12 opt.scrolloff = 10
+2 -2
.config/nvim/lua/plugins/comfy_line_numbers.lua
··· 1 1 return { 2 - "mluders/comfy-line-numbers.nvim", 3 - opts = {}, 2 + "mluders/comfy-line-numbers.nvim", 3 + opts = {}, 4 4 }
+17 -17
.config/nvim/lua/plugins/conform.lua
··· 1 1 return { 2 - "stevearc/conform.nvim", 3 - opts = { 4 - formatters_by_ft = { 5 - gleam = { "gleam", "rustywind" }, 6 - kdl = { "kdlfmt" }, 7 - markdown = { "rumdl" }, 8 - sql = { "sqruff" }, 9 - }, 10 - formatters = { 11 - rustywind = { 12 - prepend_args = { 13 - "--custom-regex", 14 - "class\\([\\s\\S]*?[\\\"\\']([\\s\\S]*?)[\\\"\\'][\\s\\S]*?\\)", 15 - }, 16 - }, 17 - }, 18 - }, 2 + "stevearc/conform.nvim", 3 + opts = { 4 + formatters_by_ft = { 5 + gleam = { "gleam", "rustywind" }, 6 + kdl = { "kdlfmt" }, 7 + markdown = { "rumdl" }, 8 + sql = { "sqruff" }, 9 + }, 10 + formatters = { 11 + rustywind = { 12 + prepend_args = { 13 + "--custom-regex", 14 + "class\\([\\s\\S]*?[\\\"\\']([\\s\\S]*?)[\\\"\\'][\\s\\S]*?\\)", 15 + }, 16 + }, 17 + }, 18 + }, 19 19 }
+25 -25
.config/nvim/lua/plugins/core.lua
··· 1 1 return { 2 - "LazyVim/LazyVim", 3 - opts = { 2 + "LazyVim/LazyVim", 3 + opts = { 4 4 5 - icons = { 6 - -- 󰩂 Diagnostics. 7 - diagnostics = { 8 - Error = " ", 9 - Warn = " ", 10 - Hint = " ", 11 - Info = "󱁯 ", 12 - }, 5 + icons = { 6 + -- 󰩂 Diagnostics. 7 + diagnostics = { 8 + Error = " ", 9 + Warn = " ", 10 + Hint = " ", 11 + Info = "󱁯 ", 12 + }, 13 13 14 - --  Git Diff. 15 - git = { 16 - added = " ", 17 - modified = " ", 18 - removed = " ", 19 - }, 14 + --  Git Diff. 15 + git = { 16 + added = " ", 17 + modified = " ", 18 + removed = " ", 19 + }, 20 20 21 - --  Icons for Completion. 22 - kinds = { 23 - Enum = "󰈲 ", 24 - EnumMember = " ", 25 - Variable = " ", 26 - file = "", 27 - }, 28 - }, 29 - }, 21 + --  Icons for Completion. 22 + kinds = { 23 + Enum = "󰈲 ", 24 + EnumMember = " ", 25 + Variable = " ", 26 + file = "", 27 + }, 28 + }, 29 + }, 30 30 } 31 31 32 32 -- icons = {
+7 -7
.config/nvim/lua/plugins/linter.lua
··· 1 1 return { 2 - "mfussenegger/nvim-lint", 3 - opts = { 4 - linters_by_ft = { 5 - sql = { "sqruff" }, 6 - markdown = { "rumdl" }, 7 - }, 8 - }, 2 + "mfussenegger/nvim-lint", 3 + opts = { 4 + linters_by_ft = { 5 + sql = { "sqruff" }, 6 + markdown = { "rumdl" }, 7 + }, 8 + }, 9 9 }
+52 -52
.config/nvim/lua/plugins/mini_icons.lua
··· 1 1 return { 2 - "nvim-mini/mini.icons", 3 - opts = { 4 - default = {}, 5 - filetype = {}, 6 - lsp = {}, 7 - os = {}, 2 + "nvim-mini/mini.icons", 3 + opts = { 4 + default = {}, 5 + filetype = {}, 6 + lsp = {}, 7 + os = {}, 8 8 9 - directory = { 10 - src = { glyph = "󱧶" }, 11 - sql = { glyph = "󱋣", hl = "MiniIconsYellow" }, 12 - priv = { glyph = "󰢬", hl = "MiniIconsRed" }, 13 - plugins = { glyph = "󰉓" }, 14 - workflows = { glyph = "󰡰" }, 9 + directory = { 10 + src = { glyph = "󱧶" }, 11 + sql = { glyph = "󱋣", hl = "MiniIconsYellow" }, 12 + priv = { glyph = "󰢬", hl = "MiniIconsRed" }, 13 + plugins = { glyph = "󰉓" }, 14 + workflows = { glyph = "󰡰" }, 15 15 16 - [".config"] = { glyph = "", hl = "MiniIconsOrange" }, 17 - [".justfiles"] = { glyph = "󱧼", hl = "MiniIconsOrange" }, 18 - [".tangled"] = { glyph = "", hl = "MiniIconsWhite" }, 19 - [".jj"] = { glyph = "󱞊", hl = "MiniIconsBlue" }, 20 - [".ssh"] = { glyph = "󰢬", hl = "MiniIconsWhite" }, 21 - }, 16 + [".config"] = { glyph = "", hl = "MiniIconsOrange" }, 17 + [".justfiles"] = { glyph = "󱧼", hl = "MiniIconsOrange" }, 18 + [".tangled"] = { glyph = "", hl = "MiniIconsWhite" }, 19 + [".jj"] = { glyph = "󱞊", hl = "MiniIconsBlue" }, 20 + [".ssh"] = { glyph = "󰢬", hl = "MiniIconsWhite" }, 21 + }, 22 22 23 - extension = { 24 - ["zig.zon"] = { glyph = "", hl = "MiniIconsOrange" }, 25 - db = { glyph = "", hl = "MiniIconsBlue" }, 26 - sqlite = { glyph = "", hl = "MiniIconsBlue" }, 27 - dj = { glyph = "", hl = "MiniIconsWhite" }, 28 - fish = { glyph = "󰈺", hl = "MiniIconsGreen" }, 29 - gleam = { glyph = "" }, 30 - parquet = { glyph = "󱘩", hl = "MiniIconsGreen" }, 31 - php = { glyph = "" }, 32 - md = { glyph = "󰂺", hl = "MiniIconsGreen" }, 33 - zig = { hl = "MiniIconsYellow" }, 34 - }, 23 + extension = { 24 + ["zig.zon"] = { glyph = "", hl = "MiniIconsOrange" }, 25 + db = { glyph = "", hl = "MiniIconsBlue" }, 26 + sqlite = { glyph = "", hl = "MiniIconsBlue" }, 27 + dj = { glyph = "", hl = "MiniIconsWhite" }, 28 + fish = { glyph = "󰈺", hl = "MiniIconsGreen" }, 29 + gleam = { glyph = "" }, 30 + parquet = { glyph = "󱘩", hl = "MiniIconsGreen" }, 31 + php = { glyph = "" }, 32 + md = { glyph = "󰂺", hl = "MiniIconsGreen" }, 33 + zig = { hl = "MiniIconsYellow" }, 34 + }, 35 35 36 - file = { 37 - ["README.md"] = { glyph = "󰂺", hl = "MiniIconsWhite" }, 38 - ["Taskfile.yml"] = { glyph = "󰆧", hl = "MiniIconsCyan" }, 39 - ["compose.yml"] = { glyph = "", hl = "MiniIconsCyan" }, 40 - ["Containerfile"] = { glyph = "", hl = "MiniIconsBlue" }, 36 + file = { 37 + ["README.md"] = { glyph = "󰂺", hl = "MiniIconsWhite" }, 38 + ["Taskfile.yml"] = { glyph = "󰆧", hl = "MiniIconsCyan" }, 39 + ["compose.yml"] = { glyph = "", hl = "MiniIconsCyan" }, 40 + ["Containerfile"] = { glyph = "", hl = "MiniIconsBlue" }, 41 41 42 - -- Ignore 43 - [".dockerignore"] = { hl = "MiniIconsPurple" }, 44 - [".prettierignore"] = { hl = "MiniIconsPurple" }, 42 + -- Ignore 43 + [".dockerignore"] = { hl = "MiniIconsPurple" }, 44 + [".prettierignore"] = { hl = "MiniIconsPurple" }, 45 45 46 - -- Config 47 - [".envrc"] = { glyph = "", hl = "MiniIconsYellow" }, 48 - [".tmux.conf"] = { glyph = "", hl = "MiniIconsGreen" }, 49 - ["fly.toml"] = { glyph = "", hl = "MiniIconsPurple" }, 50 - ["yazi.toml"] = { glyph = "󰇥", hl = "MiniIconsYellow" }, 51 - ["tailwind.config.js"] = { glyph = "", hl = "MiniIconsBlue" }, 46 + -- Config 47 + [".envrc"] = { glyph = "", hl = "MiniIconsYellow" }, 48 + [".tmux.conf"] = { glyph = "", hl = "MiniIconsGreen" }, 49 + ["fly.toml"] = { glyph = "", hl = "MiniIconsPurple" }, 50 + ["yazi.toml"] = { glyph = "󰇥", hl = "MiniIconsYellow" }, 51 + ["tailwind.config.js"] = { glyph = "", hl = "MiniIconsBlue" }, 52 52 53 - -- Projects 54 - ["deno.json"] = { glyph = "", hl = "MiniIconsOrange" }, 55 - ["deno.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 56 - ["package.json"] = { glyph = "󰏓", hl = "MiniIconsOrange" }, 53 + -- Projects 54 + ["deno.json"] = { glyph = "", hl = "MiniIconsOrange" }, 55 + ["deno.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 56 + ["package.json"] = { glyph = "󰏓", hl = "MiniIconsOrange" }, 57 57 58 - ["gleam.toml"] = { glyph = "󱙨", hl = "MiniIconsPurple" }, 58 + ["gleam.toml"] = { glyph = "󱙨", hl = "MiniIconsPurple" }, 59 59 60 - ["poetry.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 61 - }, 62 - }, 60 + ["poetry.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 61 + }, 62 + }, 63 63 }
+18 -18
.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 - }, 14 - }, 15 - }, 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 + }, 14 + }, 15 + }, 16 16 17 - { 18 - "folke/flash.nvim", 19 - opts = { modes = { char = { keys = { "f", "F", "t", "T" } } } }, 20 - }, 17 + { 18 + "folke/flash.nvim", 19 + opts = { modes = { char = { keys = { "f", "F", "t", "T" } } } }, 20 + }, 21 21 }
+5 -5
.config/nvim/lua/plugins/noice.lua
··· 1 1 return { 2 - "folke/noice.nvim", 3 - opts = { 4 - presets = { lsp_doc_border = true }, 5 - cmdline = { view = "cmdline" }, 6 - }, 2 + "folke/noice.nvim", 3 + opts = { 4 + presets = { lsp_doc_border = true }, 5 + cmdline = { view = "cmdline" }, 6 + }, 7 7 }
+13 -13
.config/nvim/lua/plugins/nvim-treesitter.lua
··· 1 1 return { 2 - "nvim-treesitter/nvim-treesitter", 3 - opts = { 4 - ensure_installed = { 5 - "fish", 6 - "git_config", 7 - "gleam", 8 - "just", 9 - "sql", 10 - "ssh_config", 11 - "tmux", 12 - "zig", 13 - }, 14 - }, 2 + "nvim-treesitter/nvim-treesitter", 3 + opts = { 4 + ensure_installed = { 5 + "fish", 6 + "git_config", 7 + "gleam", 8 + "just", 9 + "sql", 10 + "ssh_config", 11 + "tmux", 12 + "zig", 13 + }, 14 + }, 15 15 }
+9
.config/nvim/lua/plugins/quicker.lua
··· 1 + local toggle_quickfix = function() 2 + require("quicker").toggle() 3 + end 4 + 1 5 return { 2 6 "stevearc/quicker.nvim", 3 7 ft = "qf", 8 + 4 9 opts = { 5 10 buflisted = true, 6 11 number = true, 12 + }, 13 + 14 + keys = { 15 + { "n", "<leader>q", toggle_quickfix }, 7 16 }, 8 17 }
+25 -25
.config/nvim/lua/plugins/render_markdown.lua
··· 1 1 return { 2 - "MeanderingProgrammer/render-markdown.nvim", 3 - opts = { 4 - latex = { enabled = false }, 5 - completions = { lsp = { enabled = true } }, 6 - heading = { enabled = true }, 7 - code = { 8 - language_border = " ", 9 - language_left = "▒", 10 - language_right = "▒", 11 - min_width = 80, 12 - }, 13 - checkbox = { 14 - enabled = true, 15 - checked = { scope_highlight = "@markup.strikethrough" }, 16 - }, 17 - link = { 18 - enabled = true, 19 - footnote = { superscript = false, icon = " 󰯔 " }, 20 - custom = { 21 - bluesky = { pattern = "^https://bsky.app", icon = " " }, 22 - tangled = { pattern = "^https://tangled.org", icon = "󰳆 " }, 23 - hexdocs = { pattern = "^https://hexdocs.pm", icon = " " }, 24 - }, 25 - }, 26 - }, 2 + "MeanderingProgrammer/render-markdown.nvim", 3 + opts = { 4 + latex = { enabled = false }, 5 + completions = { lsp = { enabled = true } }, 6 + heading = { enabled = true }, 7 + code = { 8 + language_border = " ", 9 + language_left = "▒", 10 + language_right = "▒", 11 + min_width = 80, 12 + }, 13 + checkbox = { 14 + enabled = true, 15 + checked = { scope_highlight = "@markup.strikethrough" }, 16 + }, 17 + link = { 18 + enabled = true, 19 + footnote = { superscript = false, icon = " 󰯔 " }, 20 + custom = { 21 + bluesky = { pattern = "^https://bsky.app", icon = " " }, 22 + tangled = { pattern = "^https://tangled.org", icon = "󰳆 " }, 23 + hexdocs = { pattern = "^https://hexdocs.pm", icon = " " }, 24 + }, 25 + }, 26 + }, 27 27 }
+10 -10
.config/nvim/lua/plugins/todo_comments.lua
··· 1 1 return { 2 - "folke/todo-comments.nvim", 3 - dependencies = { "nvim-lua/plenary.nvim" }, 4 - opts = { 5 - keywords = { 6 - CAUTION = { icon = "󰒡" }, 7 - NOTE = { icon = "" }, 8 - TEST = { icon = "󰙨" }, 9 - TODO = { icon = "󱨰" }, 10 - }, 11 - }, 2 + "folke/todo-comments.nvim", 3 + dependencies = { "nvim-lua/plenary.nvim" }, 4 + opts = { 5 + keywords = { 6 + CAUTION = { icon = "󰒡" }, 7 + NOTE = { icon = "" }, 8 + TEST = { icon = "󰙨" }, 9 + TODO = { icon = "󱨰" }, 10 + }, 11 + }, 12 12 }
+2 -2
.config/nvim/lua/plugins/which_key.lua
··· 1 1 return { 2 - "folke/which-key.nvim", 3 - opts = { preset = "helix" }, 2 + "folke/which-key.nvim", 3 + opts = { preset = "helix" }, 4 4 }