-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
99 lines (77 loc) · 2.21 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
-- Init nvim config
-- Plugin package manager
-- autoinstall Paq
local install_path = vim.fn.stdpath("data") .. "/site/pack/paqs/start/paq-nvim"
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
os.execute("git clone --depth 1 https://github.com/savq/paq-nvim.git " .. install_path)
end
-- load Paq
vim.cmd.packadd("paq-nvim")
-- load plugins
require("paq")({
"savq/paq-nvim", -- Let Paq manage itself
"Mofiqul/dracula.nvim",
"nvim-lualine/lualine.nvim",
{
"nvim-treesitter/nvim-treesitter",
build = function()
vim.cmd("TSUpdate")
end,
},
-- TODO PaqInstall will raise an error, as it can't call MasonUpdate yet.
{
"williamboman/mason.nvim",
build = function()
vim.cmd("MasonUpdate")
end,
},
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
"hrsh7th/nvim-cmp", -- completion engine
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lua",
"ray-x/lsp_signature.nvim",
"nvim-lua/plenary.nvim",
"jose-elias-alvarez/null-ls.nvim", -- requires plenary and lspconfig
"jay-babu/mason-null-ls.nvim",
"nvim-tree/nvim-web-devicons",
"folke/trouble.nvim",
"simrat39/symbols-outline.nvim",
"nvim-tree/nvim-tree.lua",
"mfussenegger/nvim-fzy",
-- TODO work through their default config, see gitsigns repo
"lewis6991/gitsigns.nvim",
"lukas-reineke/indent-blankline.nvim",
-- TODO work through their default config and replace default_mapping with own
"rmagatti/goto-preview",
-- TODO work through their default config, see which-key repo
"folke/which-key.nvim",
{
"toppair/peek.nvim",
build = "deno task --quiet build:fast",
},
"mfussenegger/nvim-dap",
"rcarriga/nvim-dap-ui",
"theHamsta/nvim-dap-virtual-text",
"mfussenegger/nvim-dap-python",
"norcalli/nvim-colorizer.lua",
})
-- Source config files
require("colors")
require("lsp")
require("mappings")
require("settings")
require("plugins.cmp")
require("plugins.fzy")
require("plugins.gitsigns")
require("plugins.indent")
require("plugins.peek")
require("plugins.preview")
require("plugins.symbolsoutline")
require("plugins.tree")
require("plugins.trouble")
require("plugins.which")
require("plugins.dap")
require("plugins.colorizer")