-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.lua
157 lines (144 loc) · 3.2 KB
/
plugins.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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
},
{
"liuchengxu/vista.vim",
lazy = false
},
{
"sindrets/diffview.nvim",
lazy = false
},
-- FZF
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
},
-- override plugin configs
{
"williamboman/mason.nvim",
opts = overrides.mason
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
highlight = {
enable = true,
disable = function(_, bufnr) -- Disable in large buffers
return vim.api.nvim_buf_line_count(bufnr) > 4000
end,
},
ensure_installed = {
"bash",
"bibtex",
"c",
"cmake",
"comment",
"cpp",
"diff", -- git
"dot",
"doxygen",
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
"json",
"kconfig",
"latex",
"llvm", -- BRAINLET MOMENT
"lua",
"make",
"markdown",
"markdown_inline",
"meson",
"ninja",
"proto", -- protocol buffers (google)
"python",
"regex",
"rust",
"rust",
"verilog",
"vim",
"vimdoc",
"yaml",
},
}
},
{
"nvim-tree/nvim-tree.lua",
opts = overrides.nvimtree,
},
-- Install a plugin
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
},
{
"jbyuki/venn.nvim",
keys = { " v", "n" },
},
{
"kdheepak/lazygit.nvim",
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
-- optional for floating window border decoration
dependencies = {
"nvim-lua/plenary.nvim",
},
},
{
'chomosuke/typst-preview.nvim',
ft = 'typst',
version = '0.3.*',
build = function() require 'typst-preview'.update() end,
},
{
'mrcjkb/rustaceanvim',
version = '^5', -- Recommended
lazy = false, -- This plugin is already lazy
}
-- 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