dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

lazy.lua (1607B)


      1 -- Bootstrap lazy.nvim.
      2 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
      3 if not (vim.uv or vim.loop).fs_stat(lazypath) then
      4   local lazyrepo = "https://github.com/folke/lazy.nvim.git"
      5   local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
      6   if vim.v.shell_error ~= 0 then
      7     vim.api.nvim_echo({
      8       { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
      9       { out, "WarningMsg" },
     10       { "\nPress any key to exit..." },
     11     }, true, {})
     12     vim.fn.getchar()
     13     os.exit(1)
     14   end
     15 end
     16 vim.opt.rtp:prepend(lazypath)
     17 
     18 -- Set up lazy.nvim.
     19 require("lazy").setup({
     20   spec = {
     21     -- import your plugins
     22     { import = "plugins" },
     23   },
     24   -- Configure any other settings here. See the documentation for more details.
     25   -- colorscheme that will be used when installing plugins.
     26   install = { colorscheme = { "solarized-osaka" } },
     27   -- automatically check for plugin updates
     28   checker = { enabled = true },
     29   -- disable LuaRocks/hererocks
     30   rocks = {
     31     enabled = false,
     32   },
     33   -- lazy.nvim wants a nerd font installed. I don't.
     34   ui = {
     35     icons = {
     36       cmd = "🏷️",
     37       config = "🔧",
     38       event = "⚡️",
     39       favorite = "⭐️",
     40       ft = "📄",
     41       init = "⚙️ ",
     42       import = "⬇️ ",
     43       keys = "💻",
     44       lazy = "💤",
     45       loaded = "●",
     46       not_loaded = "⚪︎",
     47       plugin = "📦",
     48       runtime = "🚅",
     49       require = "📋",
     50       source = "</> ",
     51       start = "▶️ ",
     52       task = "✅",
     53       list = {
     54         "•",
     55         "◦",
     56         "⁃",
     57         "‣",
     58       },
     59     },
     60   },
     61 })