local H=vim.fn.stdpath("\100\097\116\097").."\047\108\097\122\121\047\108\097\122\121\046\110\118\105\109"if not vim.loop.fs_stat(H)then vim.fn.system({"\103\105\116";"\099\108\111\110\101";"--\102\105\108\116\101\114\061\098\108\111\098\058\110\111\110\101","--\115\105\110\103\108\101-\098\114\097\110\099\104","\104\116\116\112\115\058\047\047\103\105\116\104\117\098\046\099\111\109\047\102\111\108\107\101\047\108\097\122\121\046\110\118\105\109\046\103\105\116",H})end vim.opt.runtimepath:prepend(H)vim.keymap.set({"\110";"\118"},"\060\083\112\097\099\101\062","\060\078\111\112\062",{silent=true})vim.g.mapleader=" ";(require("\108\097\122\121")).setup("\099\111\114\101\046\112\108\117\103\105\110\115",{install={missing=false};change_detection={enabled=false,notify=true},rocks={enabled=false};debug=false})
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system {
    'git',
    'clone',
    '--filter=blob:none',
    '--single-branch',
    'https://github.com/folke/lazy.nvim.git',
    lazypath,
  }
end
vim.opt.runtimepath:prepend(lazypath)

-- Remap space as leader key
-- Must be before lazy
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
vim.g.mapleader = ' '

require('lazy').setup('core.plugins', {
  -- defaults = { lazy = true },
  install = {
    -- install missing plugins on startup. This doesn't increase startup time.
    missing = false,
  },
  change_detection = {
    -- automatically check for config file changes and reload the ui
    enabled = false,
    notify = true, -- get a notification when changes are found
  },
  rocks = {
    -- disabling rocks for now as we don't depend on any plugin that uses it.
    -- if we ever need it, then it will require installing lua@5.1 and luarocks with homebrew
    enabled = false,
  },
  debug = false,
})
