Add type hints to plugins that were extracted from init.lua

Based on:

    commit 177ff6148391742ccb7aaa93c05b95cd6fc853e2
    Author:     orip <oriori1703@gmail.com>
    AuthorDate: Sat Apr 26 14:35:04 2025 +0300

    Add type hints to plugin options where possible

    This could help beginners to get autocompletion, catch mistakes earlier,
    and allow them to skip the docs for simple configs.

    This is not perfect because a lot of the plugins type all of their keys
    as required, even though they have defaults, but this is good enough.
This commit is contained in:
Damjan 9000 2026-03-15 20:24:45 +01:00
parent 5ca301d91c
commit 77d74fac16
9 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,5 @@
---@module 'lazy'
---@type LazySpec
return {
{ -- Autocompletion
'saghen/blink.cmp',

View File

@ -1,3 +1,5 @@
---@module 'lazy'
---@type LazySpec
return {
{ -- Autoformat
'stevearc/conform.nvim',

View File

@ -1,4 +1,6 @@
-- LSP Plugins
---@module 'lazy'
---@type LazySpec
return {
{
-- Main LSP Configuration

View File

@ -1,3 +1,5 @@
---@module 'lazy'
---@type LazySpec
return {
{ -- Collection of various small independent plugins/modules
'nvim-mini/mini.nvim',

View File

@ -5,6 +5,8 @@
--
-- Use the `dependencies` key to specify the dependencies of a particular plugin
---@module 'lazy'
---@type LazySpec
return {
{ -- Fuzzy Finder (files, lsp, etc)
'nvim-telescope/telescope.nvim',

View File

@ -1,4 +1,6 @@
-- Highlight todo, notes, etc in comments
---@module 'lazy'
---@type LazySpec
return {
{
'folke/todo-comments.nvim',

View File

@ -1,3 +1,5 @@
---@module 'lazy'
---@type LazySpec
return {
{ -- You can easily change to a different colorscheme.
-- Change the name of the colorscheme plugin below, and then

View File

@ -1,3 +1,5 @@
---@module 'lazy'
---@type LazySpec
return {
{ -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',

View File

@ -12,6 +12,8 @@
-- Then, because we use the `opts` key (recommended), the configuration runs
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
---@module 'lazy'
---@type LazySpec
return {
{ -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim',