Skip to content

Conversation

igorlfs
Copy link
Contributor

@igorlfs igorlfs commented Aug 19, 2025

Adds ---@type vim.lsp.Config for configs and fixes some type related issues (and some minor inconsistencies).

To make it easier for review, it's split into 2 commits.

TODO: add lint rule

@justinmk justinmk marked this pull request as ready for review August 19, 2025 02:55
@justinmk justinmk changed the title chore: add type annotations for configs fix: type annotations Aug 19, 2025
@justinmk justinmk merged commit 1b590dc into neovim:master Aug 19, 2025
6 checks passed
@justinmk
Copy link
Member

Nice, this found some actual bugs. Thanks!

@igorlfs igorlfs deleted the chore/type-annotations branch August 19, 2025 03:03
@@ -8,6 +8,7 @@
---
--- * Initialization: https://github.com/muffinmad/anakin-language-server#initialization-option
--- * Configuration: https://github.com/muffinmad/anakin-language-server#configuration-options
---@type vim.lsp.Config
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a blank line above this. Else the ---@type... is part of the generated doc. Plus that's more "correct" anyway since a @brief doc describes the module, not any particular code in the module.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oopsie! I swear, this must be a curse: every small contribution I make here comes with a subtle bug 😭

Follow-up: #4017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants