-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.lua
More file actions
131 lines (116 loc) · 3.04 KB
/
Copy pathplugins.lua
File metadata and controls
131 lines (116 loc) · 3.04 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
local overrides = require "custom.configs.overrides"
---@type NvPluginSpec[]
local plugins = {
-- Override plugin definition options
{
"neovim/nvim-lspconfig",
dependencies = {
-- format & linting
{
"jose-elias-alvarez/null-ls.nvim",
config = function()
require "custom.configs.null-ls"
end,
},
},
config = function()
require "plugins.configs.lspconfig"
require "custom.configs.lspconfig"
end, -- Override to setup mason-lspconfig
},
-- override plugin configs
{
"williamboman/mason.nvim",
opts = overrides.mason,
},
{
"nvim-treesitter/nvim-treesitter",
opts = overrides.treesitter,
},
{
"nvim-tree/nvim-tree.lua",
opts = overrides.nvimtree,
},
-- Install a plugin
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
},
-- Github Copilot
{
"zbirenbaum/copilot.lua",
-- Lazy load when event occurs. Events are triggered
-- as mentioned in:
-- https://vi.stackexchange.com/a/4495/20389
-- event = "InsertEnter",
-- You can also have it load at immediately at
-- startup by commenting above and uncommenting below:
lazy = false,
opts = overrides.copilot,
},
-- Todo Highlight
-- TODO: Test
-- HACK: Test
-- FIX: Test
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
lazy = false,
opts = overrides.todo,
},
-- Trouble
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
lazy = false,
opts = overrides.trouble,
},
-- {
-- "L3MON4D3/LuaSnip",
-- -- follow latest release.
-- version = "v2.3", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
-- -- install jsregexp (optional!).
-- lazy = false,
-- build = "make install_jsregexp",
-- },
-- Ufo
-- {
-- "kevinhwang91/nvim-ufo",
-- dependencies = {
-- {
-- "kevinhwang91/promise-async",
-- },
-- },
-- opts = {
-- filetype_exclude = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" },
-- },
-- config = function(_, opts)
-- vim.api.nvim_create_autocmd("FileType", {
-- group = vim.api.nvim_create_augroup("local_detach_ufo", { clear = true }),
-- pattern = opts.filetype_exclude,
-- callback = function()
-- require("ufo").detach()
-- end,
-- })
--
-- vim.opt.foldlevelstart = 99
-- require("ufo").setup(opts)
-- end,
-- },
-- To make a plugin not be loaded
-- {
-- "NvChad/nvim-colorizer.lua",
-- enabled = false
-- },
-- All NvChad plugins are lazy-loaded by default
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
-- {
-- "mg979/vim-visual-multi",
-- lazy = false,
-- }
}
return plugins