-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
112 lines (109 loc) · 2.52 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
vim.g.python3_host_prog = vim.env.HOME .. "/.virtualenvs/nvim/bin/python3"
vim.g.mapleader = " "
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or 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)
require("lazy").setup({
"neovim/nvim-lspconfig",
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
require("plugin.treesitter")
end,
},
{
"hrsh7th/nvim-cmp",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"lukas-reineke/cmp-rg",
},
event = "InsertEnter",
config = function()
require("plugin.nvim-cmp")
end,
},
{
"ibhagwan/fzf-lua",
config = function()
require("plugin.fzf-lua")
end,
},
{
"Shatur/neovim-ayu",
lazy = false,
priority = 1000,
config = function()
require("plugin.ayu")
end,
},
{
"lewis6991/gitsigns.nvim",
config = function()
require("plugin.gitsigns")
end,
},
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
config = function()
require("plugin.indent_blankline")
end,
},
{
"kylechui/nvim-surround",
config = true,
},
{
"ggandor/leap.nvim",
event = "VeryLazy",
config = function()
require("plugin.leap")
end,
},
{
"numToStr/FTerm.nvim",
event = "VeryLazy",
config = function()
require("plugin.fterm")
end,
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
config = true,
},
{
"echasnovski/mini.map",
version = false,
config = function()
require("plugin.mini_map")
end,
},
{
"folke/which-key.nvim",
event = "VeryLazy",
config = function()
require("plugin.which-key")
end,
},
})
-- load modules ------------------------------------------------------------------------------------
require "lsp"
require "settings"
require "autocmds"
require "statusline"
require "disable_plugins"
require "myfuncs"