Skip to content

Commit 825ba50

Browse files
committed
Recommend users add a @type annotation in the config README.
1 parent 7decb91 commit 825ba50

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.devcontainer/lazyvim/lean.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ return {
55
'nvim-lua/plenary.nvim',
66
'neovim/nvim-lspconfig',
77
},
8+
---@module 'lean'
9+
---@type lean.Config
810
opts = {
911
infoview = {
1012
horizontal_position = 'top',

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,14 @@ This can be configured by putting a line at the top of your `~/.config/nvim/init
168168
## Full Configuration & Settings Information
169169

170170
```lua
171-
require('lean').setup{
171+
---@module 'lean'
172+
---@type lean.Config
173+
require('lean').setup {
174+
-- Enable suggested mappings?
175+
--
176+
-- false by default, true to enable
177+
mappings = false,
178+
172179
-- Enable the Lean language server(s)?
173180
--
174181
-- false to disable, otherwise should be a table of options to pass to `leanls`
@@ -219,11 +226,6 @@ This can be configured by putting a line at the top of your `~/.config/nvim/init
219226
leader = '\\',
220227
},
221228

222-
-- Enable suggested mappings?
223-
--
224-
-- false by default, true to enable
225-
mappings = false,
226-
227229
-- Infoview support
228230
infoview = {
229231
-- Automatically open an infoview on entering a Lean buffer?

0 commit comments

Comments
 (0)