Advertisement
Guest User

Untitled

a guest
Jan 10th, 2025
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.78 KB | Software | 0 0
  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. -- Make sure to setup `mapleader` and `maplocalleader` before
  19. -- loading lazy.nvim so that mappings are correct.
  20. -- This is also a good place to setup other settings (vim.opt)
  21. vim.g.mapleader = " "
  22. vim.g.maplocalleader = "\\"
  23.  
  24. -- Setup lazy.nvim
  25. require("lazy").setup({
  26.   spec = {
  27.     -- import your plugins
  28.     {'folke/tokyonight.nvim'},
  29.     {'nvim-tree/nvim-tree.lua'},
  30.     {'nvim-tree/nvim-web-devicons'},
  31.     {
  32.       "S1M0N38/love2d.nvim",
  33.       cmd = "LoveRun",
  34.       opts = { },
  35.       keys = {
  36.         { "<leader>v", desc = "LÖVE" },
  37.         { "<leader>vv", "<cmd>LoveRun<cr>", desc = "Run LÖVE" },
  38.         { "<leader>vs", "<cmd>LoveStop<cr>", desc = "Stop LÖVE" },
  39.       },
  40.     },
  41.     {'neovim/nvim-lspconfig'},
  42.     {'hrsh7th/nvim-cmp'},
  43.     {'hrsh7th/cmp-buffer'},
  44.     {'hrsh7th/cmp-path'},
  45.     {'saadparwaiz1/cmp_luasnip'},
  46.     {'hrsh7th/cmp-nvim-lsp'},
  47.     {'hrsh7th/cmp-nvim-lua'},
  48.     {'L3MON4D3/LuaSnip'}
  49.   },
  50.   -- Configure any other settings here. See the documentation for more details.
  51.   -- colorscheme that will be used when installing plugins.
  52.   install = { colorscheme = { "habamax" } },
  53.   -- automatically check for plugin updates
  54.   checker = { enabled = true },
  55. })
  56.  
Tags: lua neovim love2d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement