mirror of
https://github.com/dam9000/kickstart-modular.nvim.git
synced 2026-03-29 17:21:29 +00:00
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:
parent
5ca301d91c
commit
77d74fac16
@ -1,3 +1,5 @@
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {
|
||||
{ -- Autocompletion
|
||||
'saghen/blink.cmp',
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {
|
||||
{ -- Autoformat
|
||||
'stevearc/conform.nvim',
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
-- LSP Plugins
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {
|
||||
{
|
||||
-- Main LSP Configuration
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {
|
||||
{ -- Collection of various small independent plugins/modules
|
||||
'nvim-mini/mini.nvim',
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
-- Highlight todo, notes, etc in comments
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {
|
||||
{
|
||||
'folke/todo-comments.nvim',
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {
|
||||
{ -- Highlight, edit, and navigate code
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user