-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
61 lines (50 loc) · 1.54 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--[[
_ __ __ _| |_| |__ ___ _ __ ___
| '_ \ / _` | __| '_ \ / _ \| '_ ` _ \
| | | | (_| | |_| | | | (_) | | | | | |
|_| |_|\__,_|\__|_| |_|\___/|_| |_| |_|
Welcome to my neovim config!
]]
--[[
├── init.lua // All of my options and keymaps
└── lua
├── autocommands.lua // A lua api for vim autocommands
├── config // Plugin specific config files
│ ... // The ones worth checking out are shown
│ ├── buftabline.lua
│ ...
│ ├── feline.lua
│ ...
│ ├── lsp.lua
│ ...
│ └── utils.lua // Common utility functions
├── packer_compiled.lua
└── plugins.lua // An annotated list of my plugins
]]
-- CREDIT: Heavily inspired by https://github.com/wbthomason/dotfiles
-- require("lazy").setup(plugins, opts)
local cmd = vim.cmd
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",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
-- Precompile lua modules
vim.loader.enable()
-- All of my options
require("opts")
require("lazy").setup("plugins")
-- require("plugins")
-- All of my key mappings
require("mappings")
-- All of my autocommands
require("autocommands")
-- The greatest colorscheme!
cmd("colorscheme gruvbox")