/
/
/
1local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2if 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.gn.getchar()
12 os.exit(1)
13 end
14end
15vim.opt.rtp:prepend(lazypath)
16
17-- Make sure to setup 'mapleader' and 'maplocalleader' before
18-- lodading lazy,nvim so that mappings are correct.
19-- This is also a good place to setup other things (vim.opt)
20
21vim.g.mapleader = " "
22vim.g.maplocalleader = "\\"
23
24-- Setup layz.nvim
25require("lazy").setup({
26 spec = {
27 -- import your plugins
28 { import = "plugins.telescope" },
29 { import = "plugins.treesitter" },
30 { import = "plugins.colorscheme" },
31 { import = "plugins.themery" },
32 { import = "plugins.ui" },
33 { import = "plugins.harpoon" },
34 { import = "plugins.undotree" },
35 { import = "plugins.fugitive" },
36 { import = "plugins.lsp-ros" },
37 { import = "plugins.ros2" },
38 { import = "plugins.noice" },
39 },
40
41 -- Configure any other settings here. See the documentation for more details.
42 -- colorscheme that will be used when installing plugins.
43 -- install = { colorscheme = { "catpuccin" } },
44
45 -- automatically check for plugin updates
46 checker = { enabled = true },
47})
48