-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
90 lines (86 loc) · 1.83 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
---@diagnostic disable-next-line: undefined-field
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
require("config.options")
require("config.autocommands")
require("config.utils")
require("config.keymaps")
require("lazy").setup({
defaults = {
lazy = true,
},
spec = {
{ import = "plugins" },
},
git = {
timeout = 20, -- kill processes that take more than 20 seconds
},
ui = {
size = { width = 0.8, height = 0.8 },
border = "single",
title = " Lazy",
browser = "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser",
custom_keys = {
-- Open lazygit log
["<leader>l"] = {
function(plugin)
require("lazy.util").float_term({ "lazygit", "log" }, {
cwd = plugin.dir,
})
end,
},
-- Open terminal in plugin dir
["<leader>t"] = {
function(plugin)
require("lazy.util").float_term(nil, {
cwd = plugin.dir,
})
end,
},
},
},
checker = {
notify = false, -- get a notification when new updates are found
},
performance = {
rtp = {
disabled_plugins = {
"2html_plugin",
"bugreport",
"compiler",
"ftplugin",
"getscript",
"getscriptPlugin",
"gzip",
"logipat",
"matchit",
"matchparen",
"netrw",
"netrwFileHandlers",
"netrwPlugin",
"netrwSettings",
"optwin",
"rplugin",
"rrhelper",
"spellfile_plugin",
"synmenu",
"syntax",
"tar",
"tarPlugin",
"tohtml",
"tutor",
"vimball",
"vimballPlugin",
"zip",
"zipPlugin",
},
},
},
})
-- Default colorscheme (lazygit)
vim.cmd("colorscheme gruvbox")