🐛 fix(nvim): added optional to a lot of plugins

This commit is contained in:
Sergio Laín 2023-11-26 23:55:13 +01:00
parent 16c625086d
commit 4280546c48
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
8 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,6 @@
return { return {
"stevearc/conform.nvim", "stevearc/conform.nvim",
optional = true,
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{"<leader>cic", "<cmd>ConformInfo<CR>", mode = {"n", "v"}, desc = "Conform Info"}, {"<leader>cic", "<cmd>ConformInfo<CR>", mode = {"n", "v"}, desc = "Conform Info"},

View file

@ -1,5 +1,6 @@
return { return {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
optional = true,
opts = { opts = {
defaults = { defaults = {
fallback = { fallback = {

View file

@ -14,6 +14,7 @@ return {
}, },
{ {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
optional = true,
keys = { keys = {
{ "<F2>", false }, { "<F2>", false },
}, },

View file

@ -62,14 +62,12 @@ return {
ft = "floaterm", ft = "floaterm",
title = "Floaterm", title = "Floaterm",
size = { height = 0.4 }, size = { height = 0.4 },
filter = function(buf, win)
return vim.api.nvim_win_get_config(win).relative == ""
end,
}) })
end, end,
}, },
{ {
"goolord/alpha-nvim", "goolord/alpha-nvim",
optional = true,
opts = function(_, dashboard) opts = function(_, dashboard)
-- stylua: ignore -- stylua: ignore
local button = dashboard.button("G", "󰊢 " .. " Git", "<cmd>FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit<CR>") local button = dashboard.button("G", "󰊢 " .. " Git", "<cmd>FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit<CR>")

View file

@ -1,5 +1,6 @@
return { return {
"folke/flash.nvim", "folke/flash.nvim",
optional = true,
keys = { keys = {
-- stylua: ignore -- stylua: ignore
{ {

View file

@ -1,5 +1,6 @@
return { return {
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
optional = true,
dependencies = { dependencies = {
"luckasRanarison/neo-rename.nvim", "luckasRanarison/neo-rename.nvim",
opts = {}, opts = {},

View file

@ -1,5 +1,6 @@
return { return {
"nvim-neotest/neotest", "nvim-neotest/neotest",
optional = true,
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<leader>tl", function() require("neotest").run.run_last() end, desc = "Run Last Test" }, { "<leader>tl", function() require("neotest").run.run_last() end, desc = "Run Last Test" },

View file

@ -1,5 +1,6 @@
return { return {
"gbprod/yanky.nvim", "gbprod/yanky.nvim",
optional = true,
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"}, {"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"},