mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
docs: example keybind for :Inspect #31391
This commit is contained in:
@@ -1911,6 +1911,11 @@ vim.show_pos({bufnr}, {row}, {col}, {filter}) *vim.show_pos()*
|
|||||||
|
|
||||||
Can also be shown with `:Inspect`. *:Inspect*
|
Can also be shown with `:Inspect`. *:Inspect*
|
||||||
|
|
||||||
|
Example: To bind this function to the vim-scriptease inspired `zS` in
|
||||||
|
Normal mode: >lua
|
||||||
|
vim.keymap.set('n', 'zS', vim.show_pos)
|
||||||
|
<
|
||||||
|
|
||||||
Attributes: ~
|
Attributes: ~
|
||||||
Since: 0.9.0
|
Since: 0.9.0
|
||||||
|
|
||||||
|
@@ -146,6 +146,13 @@ end
|
|||||||
---
|
---
|
||||||
---Can also be shown with `:Inspect`. [:Inspect]()
|
---Can also be shown with `:Inspect`. [:Inspect]()
|
||||||
---
|
---
|
||||||
|
---Example: To bind this function to the vim-scriptease
|
||||||
|
---inspired `zS` in Normal mode:
|
||||||
|
---
|
||||||
|
---```lua
|
||||||
|
---vim.keymap.set('n', 'zS', vim.show_pos)
|
||||||
|
---```
|
||||||
|
---
|
||||||
---@since 11
|
---@since 11
|
||||||
---@param bufnr? integer defaults to the current buffer
|
---@param bufnr? integer defaults to the current buffer
|
||||||
---@param row? integer row to inspect, 0-based. Defaults to the row of the current cursor
|
---@param row? integer row to inspect, 0-based. Defaults to the row of the current cursor
|
||||||
|
Reference in New Issue
Block a user