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
Prev Previous commit
Next Next commit
what am i doing
  • Loading branch information
AlwaysOutofRange committed Apr 3, 2024
commit d11f649d6b01acdb07df15dc3b894215e1141bb5
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
5 changes: 2 additions & 3 deletions lua/nvcommunity/diagnostics/trouble/init.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---@type NvPluginSpec
local spec = {
"folke/trouble.nvim",
cmd = { "Trouble", "TroubleToggle", "TodoTrouble" },
dependencies = {
{
"folke/todo-comments.nvim",
opts = {}
}
opts = {},
},
},
opts = {},
init = function()
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
3 changes: 1 addition & 2 deletions lua/nvcommunity/editor/telescope-undo/init.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---@type NvPluginSpec
local spec = {
"nvim-telescope/telescope.nvim",
dependencies = {
{
"debugloop/telescope-undo.nvim",
config = function()
init = function()
local map = vim.keymap.set

map("n", "<leader>fu", "<CMD>Telescope undo<CR>", { desc = "Find undo" })
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
1 change: 0 additions & 1 deletion lua/nvcommunity/editor/treesj/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"Wansmer/treesj",
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
1 change: 0 additions & 1 deletion lua/nvcommunity/folds/fold-cycle/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"jghauser/fold-cycle.nvim",
Expand Down
3 changes: 0 additions & 3 deletions lua/nvcommunity/folds/fold-preview/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"anuvyklack/fold-preview.nvim",
Expand All @@ -15,6 +14,4 @@ local spec = {
},
}



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
1 change: 0 additions & 1 deletion lua/nvcommunity/lsp/codeactionmenu/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{

Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/lsp/dim/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"0oAstro/dim.lua",
Expand Down
3 changes: 1 addition & 2 deletions lua/nvcommunity/lsp/lsplines/init.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---@type NvPluginSpec
local spec = {
{
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
event = "LspAttach",
config = function()
require("lsp_lines").setup()
vim.diagnostic.config({ virtual_text = false })
vim.diagnostic.config { virtual_text = false }
end,
},
}
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/lsp/lspsaga/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"nvimdev/lspsaga.nvim",
Expand Down
1 change: 0 additions & 1 deletion lua/nvcommunity/lsp/lspui/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@type NvPluginSpec
local spec = {
{
"jinzhongjia/LspUI.nvim",
Expand Down
Loading