🐛 fix(nvim): added optional to a lot of plugins
This commit is contained in:
parent
16c625086d
commit
4280546c48
8 changed files with 8 additions and 3 deletions
|
@ -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"},
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
|
optional = true,
|
||||||
opts = {
|
opts = {
|
||||||
defaults = {
|
defaults = {
|
||||||
fallback = {
|
fallback = {
|
||||||
|
|
|
@ -14,6 +14,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
|
optional = true,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<F2>", false },
|
{ "<F2>", false },
|
||||||
},
|
},
|
||||||
|
|
|
@ -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>")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"folke/flash.nvim",
|
"folke/flash.nvim",
|
||||||
|
optional = true,
|
||||||
keys = {
|
keys = {
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 = {},
|
||||||
|
|
|
@ -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" },
|
||||||
|
|
|
@ -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"},
|
||||||
|
|
Loading…
Add table
Reference in a new issue