Added types

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-03-17 16:34:11 +01:00
parent fa0745989a
commit 9556024c93
41 changed files with 65 additions and 23 deletions

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"goolord/alpha-nvim",
event = "VimEnter",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"windwp/nvim-autopairs",
event = "InsertEnter",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"rainbowhxch/beacon.nvim",
event = { "BufReadPre", "BufNewFile" },

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"akinsho/bufferline.nvim",
version = "*",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"laytan/cloak.nvim",
config = function()

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"VonHeikemen/fine-cmdline.nvim",
dependencies = "MunifTanjim/nui.nvim",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec[]
return {
{
"JoosepAlviste/palenightfall.nvim",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"numToStr/Comment.nvim",
keys = { "gcc", "gbc", { "gc", mode = "v" }, { "gb", mode = "v" }, "gcO", "gco", "gcA" },

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"zbirenbaum/copilot.lua",
cmd = "Copilot",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"rcarriga/nvim-dap-ui",
dependencies = "mfussenegger/nvim-dap",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"glepnir/dashboard-nvim",
event = "VimEnter",
@@ -81,15 +82,15 @@ return {
},
footer = {
""
.. version
.. " "
.. plugins_count
.. " plugins in "
.. ms
.. "ms 󰃭 "
.. date
.. ""
.. time,
.. version
.. " "
.. plugins_count
.. " plugins in "
.. ms
.. "ms 󰃭 "
.. date
.. ""
.. time,
},
},
})

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"j-hui/fidget.nvim",
tag = "legacy",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"David-Kunz/gen.nvim",
cmd = "Gen",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"lukas-reineke/indent-blankline.nvim",
main = "ibl",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"jokajak/keyseer.nvim",
cmd = "KeySeer",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"neovim/nvim-lspconfig",
dependencies = {

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"williamboman/mason.nvim",
build = function()
@@ -23,7 +24,7 @@ return {
"pyright",
"powershell_es",
"jsonls",
"eslint"
"eslint",
},
automatic_installation = true,
})

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
-- "jose-elias-alvarez/null-ls.nvim",
"nvimtools/none-ls.nvim",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"pmizio/typescript-tools.nvim",
dependencies = {

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-lualine/lualine.nvim",
dependencies = {

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"NeogitOrg/neogit",
dependencies = "nvim-lua/plenary.nvim",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-neorg/neorg",
build = ":Neorg sync-parsers",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-neo-tree/neo-tree.nvim",
init = function()

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"folke/noice.nvim",
event = "VeryLazy",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"rcarriga/nvim-notify",
config = function()

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"hrsh7th/nvim-cmp",
dependencies = {
@@ -54,16 +55,16 @@ return {
mapping = cmp.mapping.preset.insert({
["<C-p>"] = cmp.mapping.select_prev_item(), -- previous suggestion
["<C-n>"] = cmp.mapping.select_next_item(), -- next suggestion
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
["<CR>"] = cmp.mapping.confirm({ select = false }),
["<Tab>"] = nil,
["<S-Tab>"] = nil,
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" }, -- lsp
{ name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths
{ name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths
}),
formatting = {
format = lspkind.cmp_format({

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"michaelrommel/nvim-silicon",
lazy = true,

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"ObserverOfTime/nvimcord",
cmd = "NvimcordUpdate",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-tree/nvim-tree.lua",
dependencies = { "nvim-tree/nvim-web-devicons" },

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"NvChad/nvterm",
keys = {

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec[]
return {
{
"wakatime/vim-wakatime",
@@ -5,8 +6,8 @@ return {
lazy = false,
},
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
"folke/too-comments.nvim",
ependencies = { "nvim-lua/plenary.nvim" },
event = { "BufReadPre", "BufNewFile" },
config = true,
},

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"TakenMC/presence.nvim",
event = { "BufReadPre", "BufNewFile" },

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"HiPhish/rainbow-delimiters.nvim",
dependencies = "nvim-treesitter/nvim-treesitter",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"coffebar/neovim-project",
priority = 100,

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-pack/nvim-spectre",
name = "spectre",

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-telescope/telescope.nvim",
tag = "0.1.4",
@@ -41,10 +42,10 @@ return {
},
},
fzf = {
fuzzy = true, -- false will only do exact matching
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
},
},
})

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"xiyaowong/transparent.nvim",
config = function()

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-treesitter/nvim-treesitter-textobjects",
lazy = true,
@@ -49,13 +50,13 @@ return {
enable = true,
swap_next = {
["<leader>ma"] = "@parameter.inner", -- swap parameters/argument with next
["<leader>m:"] = "@property.outer", -- swap object property with next
["<leader>mm"] = "@function.outer", -- swap function with next
["<leader>m:"] = "@property.outer", -- swap object property with next
["<leader>mm"] = "@function.outer", -- swap function with next
},
swap_previous = {
["<leader>mpa"] = "@parameter.inner", -- swap parameters/argument with prev
["<leader>mp:"] = "@property.outer", -- swap object property with prev
["<leader>mpm"] = "@function.outer", -- swap function with previous
["<leader>mp:"] = "@property.outer", -- swap object property with prev
["<leader>mpm"] = "@function.outer", -- swap function with previous
},
},
move = {

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"folke/which-key.nvim",
init = function()