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

@@ -13,11 +13,13 @@ vim.opt.rtp:prepend(lazypath)
local lazy = require("lazy") local lazy = require("lazy")
--- @type LazyPluginSpec[]
local plugins = { local plugins = {
{ import = "taken.plugins" }, { import = "taken.plugins" },
{ import = "taken.plugins.lsp" }, { import = "taken.plugins.lsp" },
} }
--- @type LazyConfig
local opts = { local opts = {
checker = { checker = {
enabled = true, enabled = true,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return { return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.4", tag = "0.1.4",

View File

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

View File

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

View File

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

View File

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