Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored: Removed '@type' from all specs, redundant post v2.5. Added 'Neocord' as a new spec. #32

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
27 changes: 13 additions & 14 deletions lua/nvcommunity/completion/codeium/init.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---@type NvPluginSpec
local spec = {
{
"hrsh7th/nvim-cmp",
config = function(_, opts)
table.insert(opts.sources, { name = "codeium" })
require("cmp").setup(opts)
end,
dependencies = {
{
"jcdickinson/codeium.nvim",
config = function()
require("codeium").setup({})
end,
},
"hrsh7th/nvim-cmp",
config = function(_, opts)
table.insert(opts.sources, { name = "codeium" })
require("cmp").setup(opts)
end,
dependencies = {
{
"jcdickinson/codeium.nvim",
config = function()
require("codeium").setup {}
end,
},
},
},
}

return spec
return spec
6 changes: 2 additions & 4 deletions lua/nvcommunity/completion/copilot/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
--- }
--- ```


---@type NvPluginSpec
local spec = {
{
"zbirenbaum/copilot.lua",
Expand All @@ -22,8 +20,8 @@ local spec = {
opts = {
suggestion = {
auto_trigger = true,
}
}
},
},
},
}

Expand Down
5 changes: 2 additions & 3 deletions lua/nvcommunity/completion/tabnine/init.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---@type NvPluginSpec
local spec = {
{
"hrsh7th/nvim-cmp",
config = function(_, opts)
table.insert(opts.sources, { name = "cmp_tabnine" })
require("cmp").setup(opts)
table.insert(opts.sources, { name = "cmp_tabnine" })
require("cmp").setup(opts)
end,
dependencies = {
{
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/diagnostics/errorlens/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"chikko80/error-lens.nvim",
Expand Down
17 changes: 6 additions & 11 deletions lua/nvcommunity/diagnostics/trouble/init.lua
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
---@type NvPluginSpec
local spec = {
"folke/trouble.nvim",
cmd = { "Trouble", "TroubleToggle", "TodoTrouble" },
dependencies = {
{
"folke/todo-comments.nvim",
opts = {}
}
opts = {},
},
},
opts = {},
init = function()
require("core.mappings").trouble = {
plugin = true,
n = {
["<leader>t"] = { "<CMD>TroubleToggle<CR>", "Toggle diagnostics" },
["<leader>td"] = { "<CMD>TodoTrouble keywords=TODO,FIX,FIXME,BUG,TEST,NOTE<CR>", "Todo/Fix/Fixme" },
},
}
require("core.utils").load_mappings "trouble"
local map = vim.keymap.set

map("n", "<leader>t", "<CMD>TroubleToggle<CR>", { desc = "Toggle diagnostics" })
map("n", "<leader>td", "<CMD>TodoTrouble keywords=TODO,FIX,FIXME,BUG,TEST,NOTE<CR>", { desc = "Todo/Fix/Fixme" })
end,
}

Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/autosave/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"okuuva/auto-save.nvim",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/beacon/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"rainbowhxch/beacon.nvim",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/biscuits/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"code-biscuits/nvim-biscuits",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/cutlass/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"gbprod/cutlass.nvim",
Expand Down
27 changes: 13 additions & 14 deletions lua/nvcommunity/editor/hlargs/init.lua
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---@type NvPluginSpec
local spec = {
{
"m-demare/hlargs.nvim",
event = "BufWinEnter",
config = function()
require("hlargs").setup {
hl_priority = 200,
}
end,
},
}
return spec
{
"m-demare/hlargs.nvim",
event = "BufWinEnter",
config = function()
require("hlargs").setup {
hl_priority = 200,
}
end,
},
}

return spec

1 change: 0 additions & 1 deletion lua/nvcommunity/editor/illuminate/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"RRethy/vim-illuminate",
Expand Down
63 changes: 31 additions & 32 deletions lua/nvcommunity/editor/rainbowdelimiters/init.lua
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
---@type NvPluginSpec
local spec = {
{
"hiphish/rainbow-delimiters.nvim",
event = "BufReadPost",
config = function()
local rainbow_delimiters = require "rainbow-delimiters"
vim.g.rainbow_delimiters = {
strategy = {
[""] = rainbow_delimiters.strategy["global"],
vim = rainbow_delimiters.strategy["local"],
},
query = {
[""] = "rainbow-delimiters",
lua = "rainbow-blocks",
},
highlight = {
"RainbowDelimiterRed",
"RainbowDelimiterYellow",
"RainbowDelimiterBlue",
"RainbowDelimiterOrange",
"RainbowDelimiterGreen",
"RainbowDelimiterViolet",
"RainbowDelimiterCyan",
},
}
end,
},
}
return spec
{
"hiphish/rainbow-delimiters.nvim",
event = "BufReadPost",
config = function()
local rainbow_delimiters = require "rainbow-delimiters"

vim.g.rainbow_delimiters = {
strategy = {
[""] = rainbow_delimiters.strategy["global"],
vim = rainbow_delimiters.strategy["local"],
},
query = {
[""] = "rainbow-delimiters",
lua = "rainbow-blocks",
},
highlight = {
"RainbowDelimiterRed",
"RainbowDelimiterYellow",
"RainbowDelimiterBlue",
"RainbowDelimiterOrange",
"RainbowDelimiterGreen",
"RainbowDelimiterViolet",
"RainbowDelimiterCyan",
},
}
end,
},
}

return spec

1 change: 0 additions & 1 deletion lua/nvcommunity/editor/satellite/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"lewis6991/satellite.nvim",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/symbols-outline/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
"simrat39/symbols-outline.nvim",
cmd = "SymbolsOutline",
Expand Down
12 changes: 4 additions & 8 deletions lua/nvcommunity/editor/telescope-undo/init.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
---@type NvPluginSpec
local spec = {
"nvim-telescope/telescope.nvim",
dependencies = {
{
"debugloop/telescope-undo.nvim",
init = function()
require("core.mappings").undo = {
plugin = true,
n = {
["<leader>fu"] = { "<CMD>Telescope undo<CR>", "Find undo" },
},
}
local map = vim.keymap.set

require("core.utils").load_mappings "undo"
map("n", "<leader>fu", "<CMD>Telescope undo<CR>", { desc = "Find undo" })
end,
config = function()
require("telescope").load_extension "undo"
end,
},
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/treesittercontext/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"nvim-treesitter/nvim-treesitter-context",
Expand Down
10 changes: 3 additions & 7 deletions lua/nvcommunity/editor/treesj/init.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
---@type NvPluginSpec
local spec = {
{
"Wansmer/treesj",
keys = { { "<leader>m", "<CMD>TSJToggle<CR>", desc = "Toggle Treesitter Join" } },
cmd = { "TSJToggle" },
opts = { use_default_keymaps = false },
init = function()
require("core.mappings").treesj = {
n = {
["<leader>tt"] = { "<CMD>TSJToggle<CR>", "Toggle Treesitter Join/Split" },
},
}
require("core.utils").load_mappings "treesj"
local map = vim.keymap.set

map("n", "<leader>tt", "<CMD>TSJToggle<CR>", { desc = "Toggle Treesitter Join/Split" })
end,
},
}
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/undo/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"kevinhwang91/nvim-fundo",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/file-explorer/oil-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"stevearc/oil.nvim",
Expand Down
17 changes: 5 additions & 12 deletions lua/nvcommunity/folds/fold-cycle/init.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
---@type NvPluginSpec
local spec = {
{
"jghauser/fold-cycle.nvim",
opts = {},
init = function()
require("core.mappings").foldcycle = {
n = {
["<leader>a"] = {
function()
require("fold-cycle").toggle_all()
end,
"Toggle fold",
},
},
}
require("core.utils").load_mappings "foldclycle"
local map = vim.keymap.set

map("n", "<leader>a", function()
require("fold-cycle").toggle_all()
end, { desc = "Toggle fold" })
end,
},
}
Expand Down
18 changes: 4 additions & 14 deletions lua/nvcommunity/folds/fold-preview/init.lua
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
---@type NvPluginSpec
local spec = {
{
"anuvyklack/fold-preview.nvim",
opts = {
border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
},
init = function()
require("core.mappings").foldpreview = {
n = {
["<leader>a"] = {
function()
require("fold-preview").toggle_preview()
end,
"Fold preview",
},
},
}
local map = vim.keymap.set

require("core.utils").load_mappings "foldpreview"
map("n", "<leader>a", function()
require("fold-preview").toggle_preview()
end, { desc = "Fold preview" })
end,
},
}



return spec
1 change: 0 additions & 1 deletion lua/nvcommunity/folds/origami/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"chrisgrieser/nvim-origami",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/folds/tailwindfold/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"razak17/tailwind-fold.nvim",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/folds/ufo/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"kevinhwang91/nvim-ufo",
Expand Down
4 changes: 1 addition & 3 deletions lua/nvcommunity/git/diffview/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
--- }
--- ```


---@type NvPluginSpec
local spec = {
"lewis6991/gitsigns.nvim",
dependencies = {
{
"sindrets/diffview.nvim",
config = true,
},
}
},
}

return spec
1 change: 0 additions & 1 deletion lua/nvcommunity/git/lazygit/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"kdheepak/lazygit.nvim",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/git/neogit/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"NeogitOrg/neogit",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/lsp/barbecue/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"utilyre/barbecue.nvim",
Expand Down
Loading