2023-04-19 03:53:25 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"vimwiki/vimwiki",
|
2023-04-19 04:30:18 +00:00
|
|
|
lazy = false,
|
2023-04-19 03:53:25 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
-- To make a plugin not be loaded
|
|
|
|
-- {
|
|
|
|
-- "NvChad/nvim-colorizer.lua",
|
|
|
|
-- enabled = false
|
|
|
|
-- },
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return plugins
|