74 lines
1.5 KiB
Lua
74 lines
1.5 KiB
Lua
|
local overrides = require "custom.configs.overrides"
|
||
|
local utils = require "core.utils"
|
||
|
|
||
|
---@type NvPluginSpec[]
|
||
|
local plugins = {
|
||
|
|
||
|
-- Override plugin definition options
|
||
|
|
||
|
{
|
||
|
"neovim/nvim-lspconfig",
|
||
|
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,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"stevearc/conform.nvim",
|
||
|
-- for users those who want auto-save conform + lazyloading!
|
||
|
-- event = "BufWritePre"
|
||
|
config = function()
|
||
|
require "custom.configs.conform"
|
||
|
end,
|
||
|
},
|
||
|
{
|
||
|
"ggandor/leap.nvim",
|
||
|
config = function()
|
||
|
require("leap").create_default_mappings()
|
||
|
end,
|
||
|
},
|
||
|
{
|
||
|
"kdheepak/lazygit.nvim",
|
||
|
keys = { "<leader>gg" },
|
||
|
cmd = "LazyGit",
|
||
|
-- optional for floating window border decoration
|
||
|
dependencies = {
|
||
|
"nvim-lua/plenary.nvim",
|
||
|
},
|
||
|
init = function()
|
||
|
require("core.utils").load_mappings "lazygit"
|
||
|
end,
|
||
|
},
|
||
|
{
|
||
|
"folke/which-key.nvim",
|
||
|
keys = { "<leader>", "<localleader>", "<c-r>", "<c-w>", '"', "'", "`", "c", "v", "g" },
|
||
|
},
|
||
|
}
|
||
|
|
||
|
return plugins
|