-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
40 lines (36 loc) · 963 Bytes
/
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
-- install lazy
local function download_lazy(lazy_path)
-- Lazy plugin manager
-- https://github.com/folke/lazy.nvim
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
-- "--branch=stable", -- latest stable release
lazy_path,
})
end
local function include_lazy()
local lazy_path = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
local stat, error = vim.loop.fs_stat(lazy_path)
if stat == nil or error ~= 0 then
download_lazy(lazy_path)
end
vim.opt.rtp:prepend(lazy_path)
end
include_lazy()
require("set_leaders")
require("lazy").setup({
change_detection = { enabled = true },
checker = { enabled = true, notify = false },
spec = {
{ "LazyVim/LazyVim", import = "plugins" },
{ import = "plugins" },
},
ui = { border = "single", custom_keys = {} },
})
require("highlight_on_yank")
require("set_options")
require("set_keymaps")
require("show_color_column")