/
/
/
My dotfile repo. It sets aliases and installs generic applications for my user.
1local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2
3-- Disable netrw before any plugins are loaded.
4-- This is required if Neo-tree should replace Neovim's built-in directory browser.
5vim.g.loaded_netrw = 1
6vim.g.loaded_netrwPlugin = 1
7
8if not (vim.uv or vim.loop).fs_stat(lazypath) then
9 local lazyrepo = "https://github.com/folke/lazy.nvim.git"
10 local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
11
12 if vim.v.shell_error ~= 0 then
13 vim.api.nvim_echo({
14 { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
15 { out, "WarningMsg" },
16 { "\nPress any key to exit..." },
17 }, true, {})
18
19 vim.fn.getchar()
20 os.exit(1)
21 end
22end
23
24vim.opt.rtp:prepend(lazypath)
25
26-- Make sure to setup 'mapleader' and 'maplocalleader' before
27-- lodading lazy,nvim so that mappings are correct.
28-- This is also a good place to setup other things (vim.opt)
29
30vim.g.mapleader = " "
31vim.g.maplocalleader = "\\"
32
33-- Setup layz.nvim
34require("lazy").setup({
35 spec = {
36 -- import your plugins
37 { import = "plugins.telescope" },
38 { import = "plugins.treesitter" },
39 { import = "plugins.colorscheme" },
40 { import = "plugins.themery" },
41 { import = "plugins.ui" },
42 { import = "plugins.harpoon" },
43 { import = "plugins.undotree" },
44 { import = "plugins.fugitive" },
45 { import = "plugins.lsp-ros" },
46 { import = "plugins.ros2" },
47 { import = "plugins.noice" },
48 { import = "plugins.lazygit" },
49 { import = "plugins.neo-tree" },
50 },
51
52 -- Configure any other settings here. See the documentation for more details.
53 -- colorscheme that will be used when installing plugins.
54 -- install = { colorscheme = { "catpuccin" } },
55
56 -- automatically check for plugin updates
57
58 checker = { enabled = true },
59})
60
61