local overrides = require "custom.configs.overrides" ---@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, }, { -- NOTE: This is leap for selecting things! "ggandor/flit.nvim", config = function() require("flit").setup { keys = { f = "f", F = "F", t = "t", T = "T" }, -- A string like "nv", "nvo", "o", etc. labeled_modes = "nvo", multiline = true, -- Like `leap`s similar argument (call-specific overrides). -- E.g.: opts = { equivalence_classes = {} } opts = {}, } end, enabled = true, }, { "ggandor/leap.nvim", -- stylua: ignore keys = { { 'gl', '(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' }, { 'gL', '(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' }, { 'wgl', '(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' }, }, config = function() local leap = require "leap" leap.opts.case_sensitive = false leap.opts.safe_labels = { "f", "n", "u", "t", "g", "ö", "w", "b", "m" } leap.opts.labels = { "a", "s", "f", "n", "j", "k", "r", "e", "r", "m", "ö", "b", "v", "u", "z", "w", "2", "3", "4", "5", "6", "7", "8", "9", } end, }, } return plugins