๐Ÿ”’ Backup for my config files
dotfiles
0
fork

Configure Feed

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

add `lazy.lua`

kacaii bd5de3ee 7b3891c9

+72 -18
+10 -10
.config/nvim/lua/config/keymaps.lua
··· 17 17 vim.keymap.set("n", "<C-a>", "gg<S-v>G", opts) 18 18 19 19 -- Open quicker.lua 20 - vim.keymap.set("n", "<leader>q", function() 21 - require("quicker").toggle() 20 + vim.keymap.set("n", "<A-q>", function() 21 + require("quicker").toggle() 22 22 end, { desc = "Toggle quickfix" }) 23 23 24 24 -- Markdown related 25 25 vim.keymap.set( 26 - "n", 27 - "<leader>mr", 28 - "<cmd>Trouble lsp_references<cr>", 29 - { noremap = true, silent = true, desc = "Find references" } 26 + "n", 27 + "<leader>mr", 28 + "<cmd>Trouble lsp_references<cr>", 29 + { noremap = true, silent = true, desc = "Find references" } 30 30 ) 31 31 32 32 vim.keymap.set( 33 - "n", 34 - "<leader>mm", 35 - "<cmd>LspRestart marksman<cr>", 36 - { noremap = true, silent = true, desc = "Restart marksman lsp" } 33 + "n", 34 + "<leader>mm", 35 + "<cmd>LspRestart marksman<cr>", 36 + { noremap = true, silent = true, desc = "Restart marksman lsp" } 37 37 )
+52
.config/nvim/lua/config/lazy.lua
··· 1 + local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 2 + if not (vim.uv or vim.loop).fs_stat(lazypath) then 3 + local lazyrepo = "https://github.com/folke/lazy.nvim.git" 4 + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) 5 + if vim.v.shell_error ~= 0 then 6 + vim.api.nvim_echo({ 7 + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, 8 + { out, "WarningMsg" }, 9 + { "\nPress any key to exit..." }, 10 + }, true, {}) 11 + vim.fn.getchar() 12 + os.exit(1) 13 + end 14 + end 15 + vim.opt.rtp:prepend(lazypath) 16 + 17 + require("lazy").setup({ 18 + spec = { 19 + -- add LazyVim and import its plugins 20 + { "LazyVim/LazyVim", import = "lazyvim.plugins" }, 21 + -- import/override with your plugins 22 + { import = "plugins" }, 23 + }, 24 + defaults = { 25 + -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. 26 + -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default. 27 + lazy = false, 28 + -- It's recommended to leave version=false for now, since a lot the plugin that support versioning, 29 + -- have outdated releases, which may break your Neovim install. 30 + version = false, -- always use the latest git commit 31 + -- version = "*", -- try installing the latest stable version for plugins that support semver 32 + }, 33 + install = { colorscheme = { "tokyonight", "habamax" } }, 34 + checker = { 35 + enabled = true, -- check for plugin updates periodically 36 + notify = false, -- notify on update 37 + }, -- automatically check for plugin updates 38 + performance = { 39 + rtp = { 40 + -- disable some rtp plugins 41 + disabled_plugins = { 42 + "gzip", 43 + "tarPlugin", 44 + "tohtml", 45 + "tutor", 46 + "zipPlugin", 47 + }, 48 + }, 49 + }, 50 + }) 51 + 52 + vim.cmd.colorscheme("catppuccin")
+1
.config/nvim/lua/plugins/mini_icons.lua
··· 44 44 ["fly.toml"] = { glyph = "๎ตƒ", hl = "MiniIconsPurple" }, 45 45 ["yazi.toml"] = { glyph = "๓ฐ‡ฅ", hl = "MiniIconsYellow" }, 46 46 ["tailwind.config.js"] = { glyph = "๎ขบ", hl = "MiniIconsBlue" }, 47 + ["compose.yml"] = { glyph = "๎ผ‰", hl = "MiniIconsBlue" }, 47 48 48 49 -- Projects 49 50 ["deno.json"] = { glyph = "๎Ÿ€", hl = "MiniIconsOrange" },
+6 -7
.config/nvim/lua/plugins/quicker.lua
··· 1 1 return { 2 - "stevearc/quicker.nvim", 3 - ft = "qf", 4 - opts = { 5 - buflisted = true, 6 - number = true, 7 - borders = { vert = " " }, 8 - }, 2 + "stevearc/quicker.nvim", 3 + ft = "qf", 4 + opts = { 5 + buflisted = true, 6 + number = true, 7 + }, 9 8 }
+3 -1
.config/starship.toml
··· 2 2 3 3 palette = "catppuccin_mocha" 4 4 add_newline = false 5 - command_timeout = 750 6 5 7 6 [character] 8 7 success_symbol = "[[๓ฐ„›](green) โฏ](peach)" ··· 17 16 disabled = true 18 17 19 18 [custom.jj] 19 + ignore_timeout = true 20 20 description = "The current jj status" 21 21 detect_folders = [".jj"] 22 22 style = "blue" 23 23 symbol = "๏‚" 24 24 25 25 [custom.jjstate] 26 + ignore_timeout = true 26 27 detect_folders = [".jj"] 27 28 command = ''' 28 29 jj log -r@ -n1 --ignore-working-copy --no-graph -T "" --stat | tail -n1 | sd "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ${1}m ${2}+ ${3}-' | sd " 0." "" ··· 32 33 disabled = true 33 34 34 35 [custom.git_status] 36 + ignore_timeout = true 35 37 when = "! jj --ignore-working-copy root" 36 38 command = "starship module git_status" 37 39 style = ""