🔒 Backup for my config files
dotfiles
0
fork

Configure Feed

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

placebo

Kacaii cd4ab416 244f646e

+184 -189
+9 -10
.config/nvim/lua/config/keymaps.lua
··· 1 - local keymap = vim.keymap 2 - -- local opts = { noremap = true, silent = true } 1 + local opts = { noremap = true, silent = true } 3 2 4 3 -- Quickly restart the Lsp Server 5 - keymap.set("n", "<leader>uu", ":LspRestart<CR>") 4 + vim.keymap.set("n", "<leader>uu", ":LspRestart<CR>") 6 5 7 6 -- Exit INSERT mode by double tapping `j` 8 - keymap.set("i", "jj", "<Esc>", { noremap = false }) 7 + vim.keymap.set("i", "jj", "<Esc>", opts) 9 8 10 9 -- Quickly insert a pipeline 11 - keymap.set("i", "<C-p>", "<Esc>A<C-j>|> ", { noremap = false }) 10 + vim.keymap.set("i", "<C-p>", "<Esc>A<C-j>|> ", opts) 12 11 13 12 -- Increment/decrement 14 - keymap.set("n", "+", "<C-a>") 15 - keymap.set("n", "-", "<C-x>") 13 + vim.keymap.set("n", "+", "<C-a>") 14 + vim.keymap.set("n", "-", "<C-x>") 16 15 17 16 -- Select all 18 - keymap.set("n", "<C-a>", "gg<S-v>G", { noremap = true, desc = "Select all", silent = true }) 17 + vim.keymap.set("n", "<C-a>", "gg<S-v>G", { noremap = true, desc = "Select all", silent = true }) 19 18 20 19 -- Open quicker.lua 21 - keymap.set("n", "<leader>q", function() 22 - require("quicker").toggle() 20 + vim.keymap.set("n", "<leader>q", function() 21 + require("quicker").toggle() 23 22 end, { desc = "Toggle quickfix" })
+2 -2
.config/nvim/lua/plugins/bufferline.lua
··· 1 1 return { 2 - "akinsho/bufferline.nvim", 3 - opts = { options = { separator_style = "slant" } }, 2 + "akinsho/bufferline.nvim", 3 + opts = { options = { separator_style = "slant" } }, 4 4 }
+17 -17
.config/nvim/lua/plugins/codesnap_nvim.lua
··· 1 1 return { 2 - "mistricky/codesnap.nvim", 3 - opts = { 4 - show_line_number = true, 5 - snapshot_config = { 6 - themes_folders = "~/.config/codesnap/themes", 7 - background = "#00000000", 8 - theme = "catppuccin_mocha", 9 - watermark = { content = "" }, 10 - window = { mac_window_bar = true }, 11 - code_config = { 12 - breadcrumbs = { 13 - enabled = true, 14 - separator = "/", 15 - }, 16 - }, 17 - }, 18 - }, 2 + "mistricky/codesnap.nvim", 3 + opts = { 4 + show_line_number = true, 5 + snapshot_config = { 6 + themes_folders = "~/.config/codesnap/themes", 7 + background = "#00000000", 8 + theme = "catppuccin_mocha", 9 + watermark = { content = "" }, 10 + window = { mac_window_bar = true }, 11 + code_config = { 12 + breadcrumbs = { 13 + enabled = true, 14 + separator = "/", 15 + }, 16 + }, 17 + }, 18 + }, 19 19 }
+25 -26
.config/nvim/lua/plugins/core.lua
··· 1 1 return { 2 - "LazyVim/LazyVim", 3 - opts = { 2 + "LazyVim/LazyVim", 3 + opts = { 4 4 5 - icons = { 5 + icons = { 6 + -- 󰩂 Diagnostics. 7 + diagnostics = { 8 + Error = " ", 9 + Warn = " ", 10 + Hint = " ", 11 + Info = "󱁯 ", 12 + }, 6 13 7 - -- 󰩂 Diagnostics. 8 - diagnostics = { 9 - Error = " ", 10 - Warn = " ", 11 - Hint = " ", 12 - Info = "󱁯 ", 13 - }, 14 + --  Git Diff. 15 + git = { 16 + added = " ", 17 + modified = " ", 18 + removed = " ", 19 + }, 14 20 15 - --  Git Diff. 16 - git = { 17 - added = " ", 18 - modified = " ", 19 - removed = " ", 20 - }, 21 - 22 - --  Icons for Completion. 23 - kinds = { 24 - Enum = "󰈲 ", 25 - EnumMember = " ", 26 - Variable = " ", 27 - file = "", 28 - }, 29 - }, 30 - }, 21 + --  Icons for Completion. 22 + kinds = { 23 + Enum = "󰈲 ", 24 + EnumMember = " ", 25 + Variable = " ", 26 + file = "", 27 + }, 28 + }, 29 + }, 31 30 } 32 31 33 32 -- icons = {
+5 -5
.config/nvim/lua/plugins/linter.lua
··· 1 1 return { 2 - "mfussenegger/nvim-lint", 3 - opts = { 4 - linters_by_ft = { sql = { "sqlfluff" } }, 5 - linters = { sqlfluff = { args = { "lint", "--format=json" } } }, 6 - }, 2 + "mfussenegger/nvim-lint", 3 + opts = { 4 + linters_by_ft = { sql = { "sqlfluff" } }, 5 + linters = { sqlfluff = { args = { "lint", "--format=json" } } }, 6 + }, 7 7 }
+58 -58
.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 = { hl = "MiniIconsOrange" }, 11 - sql = { glyph = "󱋣", hl = "MiniIconsYellow" }, 12 - priv = { glyph = "󰢬", hl = "MiniIconsRed" }, 13 - config = { glyph = "" }, 14 - plugins = { glyph = "󰉓" }, 15 - ["terminal-escape-codes"] = { glyph = "" }, 16 - }, 9 + directory = { 10 + src = { hl = "MiniIconsOrange" }, 11 + sql = { glyph = "󱋣", hl = "MiniIconsYellow" }, 12 + priv = { glyph = "󰢬", hl = "MiniIconsRed" }, 13 + config = { glyph = "" }, 14 + plugins = { glyph = "󰉓" }, 15 + ["terminal-escape-codes"] = { glyph = "" }, 16 + }, 17 17 18 - extension = { 19 - ["zig.zon"] = { glyph = "", hl = "MiniIconsOrange" }, 20 - db = { glyph = "", hl = "MiniIconsBlue" }, 21 - dj = { glyph = "", hl = "MiniIconsWhite" }, 22 - fish = { glyph = "󰈺", hl = "MiniIconsGreen" }, 23 - gleam = { glyph = "" }, 24 - parquet = { glyph = "󱘩", hl = "MiniIconsGreen" }, 25 - php = { glyph = "" }, 26 - sqlite = { glyph = "", hl = "MiniIconsBlue" }, 27 - zig = { hl = "MiniIconsYellow" }, 28 - }, 18 + extension = { 19 + ["zig.zon"] = { glyph = "", hl = "MiniIconsOrange" }, 20 + db = { glyph = "", hl = "MiniIconsBlue" }, 21 + sqlite = { glyph = "", hl = "MiniIconsBlue" }, 22 + dj = { glyph = "", hl = "MiniIconsWhite" }, 23 + fish = { glyph = "󰈺", hl = "MiniIconsGreen" }, 24 + gleam = { glyph = "" }, 25 + parquet = { glyph = "󱘩", hl = "MiniIconsGreen" }, 26 + php = { glyph = "" }, 27 + zig = { hl = "MiniIconsYellow" }, 28 + }, 29 29 30 - file = { 30 + file = { 31 31 32 - --  Common files ------------------------------------------------------- 33 - ["README.md"] = { glyph = "󰂺", hl = "MiniIconsWhite" }, 32 + --  Common files ------------------------------------------------------- 33 + ["README.md"] = { glyph = "󰂺", hl = "MiniIconsWhite" }, 34 34 35 - -- 󱁼 Config files ------------------------------------------------------- 36 - [".tmux.conf"] = { glyph = "", hl = "MiniIconsGreen" }, 37 - ["yazi.toml"] = { glyph = "󰇥", hl = "MiniIconsYellow" }, 38 - [".sqlfluff"] = { glyph = "", hl = "MiniIconsWhite" }, 39 - [".envrc"] = { glyph = "", hl = "MiniIconsYellow" }, 40 - ["justfile"] = { glyph = "", hl = "MiniIconsGrey" }, 35 + -- 󱁼 Config files ------------------------------------------------------- 36 + [".tmux.conf"] = { glyph = "", hl = "MiniIconsGreen" }, 37 + ["yazi.toml"] = { glyph = "󰇥", hl = "MiniIconsYellow" }, 38 + [".sqlfluff"] = { glyph = "", hl = "MiniIconsWhite" }, 39 + [".envrc"] = { glyph = "", hl = "MiniIconsYellow" }, 40 + ["justfile"] = { glyph = "", hl = "MiniIconsGrey" }, 41 41 42 - --  Deno Projects ------------------------------------------------------ 43 - ["deno.json"] = { glyph = "", hl = "MiniIconsOrange" }, 44 - ["deno.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 45 - ["package.json"] = { glyph = "󰏓", hl = "MiniIconsOrange" }, 42 + --  Deno Projects ------------------------------------------------------ 43 + ["deno.json"] = { glyph = "", hl = "MiniIconsOrange" }, 44 + ["deno.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 45 + ["package.json"] = { glyph = "󰏓", hl = "MiniIconsOrange" }, 46 46 47 - --  Python Projects ---------------------------------------------------- 48 - ["poetry.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 47 + --  Python Projects ---------------------------------------------------- 48 + ["poetry.lock"] = { glyph = "", hl = "MiniIconsBlue" }, 49 49 50 - -- 󰒲 Lazy Config Files -------------------------------------------------- 51 - ["colorscheme.lua"] = { glyph = "", hl = "MiniIconsPurple" }, 52 - ["core.lua"] = { glyph = "", hl = "MiniIconsGreen" }, 53 - ["disable.lua"] = { glyph = "", hl = "MiniIconsRed" }, 54 - ["keymaps.lua"] = { glyph = "󰌌", hl = "MiniIconsOrange" }, 55 - ["lazy.lua"] = { glyph = "󰒲", hl = "MiniIconsPurple" }, 56 - ["options.lua"] = { glyph = "", hl = "MiniIconsOrange" }, 57 - ["autocmds.lua"] = { glyph = "", hl = "MiniIconsOrange" }, 58 - ["blink-cmp.lua"] = { glyph = "󱐀", hl = "MiniIconsPurple" }, 59 - ["mini-icons.lua"] = { glyph = "", hl = "MiniIconsPurple" }, 60 - ["tmux-navigator.lua"] = { glyph = "", hl = "MiniIconsGreen" }, 50 + -- 󰒲 Lazy Config Files -------------------------------------------------- 51 + ["colorscheme.lua"] = { glyph = "", hl = "MiniIconsPurple" }, 52 + ["core.lua"] = { glyph = "", hl = "MiniIconsGreen" }, 53 + ["disable.lua"] = { glyph = "", hl = "MiniIconsRed" }, 54 + ["keymaps.lua"] = { glyph = "󰌌", hl = "MiniIconsOrange" }, 55 + ["lazy.lua"] = { glyph = "󰒲", hl = "MiniIconsPurple" }, 56 + ["options.lua"] = { glyph = "", hl = "MiniIconsOrange" }, 57 + ["autocmds.lua"] = { glyph = "", hl = "MiniIconsOrange" }, 58 + ["blink-cmp.lua"] = { glyph = "󱐀", hl = "MiniIconsPurple" }, 59 + ["mini-icons.lua"] = { glyph = "", hl = "MiniIconsPurple" }, 60 + ["tmux-navigator.lua"] = { glyph = "", hl = "MiniIconsGreen" }, 61 61 62 - -- 󱐀 Code Snippets ------------------------------------------------------ 63 - ["terminal-colors.json"] = { glyph = "", hl = "MiniIconsBlue" }, 64 - ["terminal-cursor-controls.json"] = { glyph = "", hl = "MiniIconsBlue" }, 65 - ["terminal-general-ascii.json"] = { glyph = "", hl = "MiniIconsBlue" }, 66 - ["terminal-modes.json"] = { glyph = "", hl = "MiniIconsBlue" }, 67 - }, 68 - }, 62 + -- 󱐀 Code Snippets ------------------------------------------------------ 63 + ["terminal-colors.json"] = { glyph = "", hl = "MiniIconsBlue" }, 64 + ["terminal-cursor-controls.json"] = { glyph = "", hl = "MiniIconsBlue" }, 65 + ["terminal-general-ascii.json"] = { glyph = "", hl = "MiniIconsBlue" }, 66 + ["terminal-modes.json"] = { glyph = "", hl = "MiniIconsBlue" }, 67 + }, 68 + }, 69 69 }
+20 -20
.config/nvim/lua/plugins/neotest.lua
··· 1 1 return { 2 - "nvim-neotest/neotest", 3 - dependencies = { 4 - "nvim-neotest/nvim-nio", 5 - "nvim-lua/plenary.nvim", 6 - "antoinemadec/FixCursorHold.nvim", 7 - "nvim-treesitter/nvim-treesitter", 8 - }, 2 + "nvim-neotest/neotest", 3 + dependencies = { 4 + "nvim-neotest/nvim-nio", 5 + "nvim-lua/plenary.nvim", 6 + "antoinemadec/FixCursorHold.nvim", 7 + "nvim-treesitter/nvim-treesitter", 8 + }, 9 9 10 - opts = { 11 - status = { virtual_text = true }, 12 - output = { open_on_run = false }, 13 - floating = { border = "single" }, 10 + opts = { 11 + status = { virtual_text = true }, 12 + output = { open_on_run = false }, 13 + floating = { border = "single" }, 14 14 15 - adapters = { 16 - --  Python 17 - require("neotest-python")({ 18 - dap = { justMyCode = false }, 19 - runner = "pytest", 20 - args = { "--log-level", "DEBUG" }, 21 - }), 22 - }, 23 - }, 15 + adapters = { 16 + --  Python 17 + require("neotest-python")({ 18 + dap = { justMyCode = false }, 19 + runner = "pytest", 20 + args = { "--log-level", "DEBUG" }, 21 + }), 22 + }, 23 + }, 24 24 }
+2 -2
.config/nvim/lua/plugins/noice.lua
··· 1 1 return { 2 - "folke/noice.nvim", 3 - opts = { presets = { lsp_doc_border = true } }, 2 + "folke/noice.nvim", 3 + opts = { presets = { lsp_doc_border = true } }, 4 4 }
+15 -15
.config/nvim/lua/plugins/tmux_navigator.lua
··· 1 1 return { 2 - "christoomey/vim-tmux-navigator", 3 - cmd = { 4 - "TmuxNavigateLeft", 5 - "TmuxNavigateDown", 6 - "TmuxNavigateUp", 7 - "TmuxNavigateRight", 8 - "TmuxNavigatePrevious", 9 - }, 10 - keys = { 11 - { "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" }, 12 - { "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" }, 13 - { "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" }, 14 - { "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" }, 15 - { "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" }, 16 - }, 2 + "christoomey/vim-tmux-navigator", 3 + cmd = { 4 + "TmuxNavigateLeft", 5 + "TmuxNavigateDown", 6 + "TmuxNavigateUp", 7 + "TmuxNavigateRight", 8 + "TmuxNavigatePrevious", 9 + }, 10 + keys = { 11 + { "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" }, 12 + { "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" }, 13 + { "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" }, 14 + { "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" }, 15 + { "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" }, 16 + }, 17 17 }
+21 -22
.config/nvim/lua/plugins/todo_comments.lua
··· 1 - --- Useful for storing the hexadeximal values 2 - local Mocha = { 3 - Blue = "#89b4fa", 4 - Flamingo = "#f2cdcd", 5 - Green = "#a6e3a1", 6 - Lavender = "#b4befe", 7 - Mauve = "#cba6f7", 8 - Peach = "#fab387", 9 - Pink = "#f5c2e7", 10 - Red = "#f38ba8", 11 - Text = "#cdd6f4", 12 - Yellow = "#f9e2af", 1 + local mocha = { 2 + blue = "#89b4fa", 3 + flamingo = "#f2cdcd", 4 + green = "#a6e3a1", 5 + lavender = "#b4befe", 6 + mauve = "#cba6f7", 7 + peach = "#fab387", 8 + pink = "#f5c2e7", 9 + red = "#f38ba8", 10 + text = "#cdd6f4", 11 + yellow = "#f9e2af", 13 12 } 14 13 15 14 return { 16 - "folke/todo-comments.nvim", 17 - dependencies = { "nvim-lua/plenary.nvim" }, 18 - opts = { 19 - keywords = { 20 - CAUTION = { icon = "󰒡", color = Mocha.Red }, 21 - NOTE = { icon = "", color = Mocha.Text }, 22 - TEST = { icon = "󰙨", color = Mocha.Mauve }, 23 - TODO = { icon = "󱨰", color = Mocha.Blue }, 24 - }, 25 - }, 15 + "folke/todo-comments.nvim", 16 + dependencies = { "nvim-lua/plenary.nvim" }, 17 + opts = { 18 + keywords = { 19 + CAUTION = { icon = "󰒡", color = mocha.Red }, 20 + NOTE = { icon = "", color = mocha.Text }, 21 + TEST = { icon = "󰙨", color = mocha.Mauve }, 22 + TODO = { icon = "󱨰", color = mocha.Blue }, 23 + }, 24 + }, 26 25 }
+2 -4
.config/nvim/lua/plugins/which_key.lua
··· 1 1 return { 2 - "folke/which-key.nvim", 3 - opts = { 4 - preset = "helix", 5 - }, 2 + "folke/which-key.nvim", 3 + opts = { preset = "helix" }, 6 4 }