mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Merge pull request #25767 from luukvbaal/signdel
feat(extmarks): add 'invalidate' property
This commit is contained in:
8
runtime/lua/vim/_meta/api.lua
generated
8
runtime/lua/vim/_meta/api.lua
generated
@@ -554,6 +554,12 @@ function vim.api.nvim_buf_line_count(buffer) end
|
||||
--- the extmark end position (if it exists) will be shifted in
|
||||
--- when new text is inserted (true for right, false for
|
||||
--- left). Defaults to false.
|
||||
--- • undo_restore : Restore the exact position of the mark if
|
||||
--- text around the mark was deleted and then restored by
|
||||
--- undo. Defaults to true.
|
||||
--- • invalidate : boolean that indicates whether to hide the
|
||||
--- extmark if the entirety of its range is deleted. If
|
||||
--- "undo_restore" is false, the extmark is deleted instead.
|
||||
--- • priority: a priority value for the highlight group or sign
|
||||
--- attribute. For example treesitter highlighting uses a
|
||||
--- value of 100.
|
||||
@@ -1812,7 +1818,7 @@ function vim.api.nvim_set_current_win(window) end
|
||||
--- `nvim_buf_set_extmark()` can be called to add marks on a per-window or
|
||||
--- per-lines basis. Use the `ephemeral` key to only use the mark for the
|
||||
--- current screen redraw (the callback will be called again for the next
|
||||
--- redraw ).
|
||||
--- redraw).
|
||||
--- Note: this function should not be called often. Rather, the callbacks
|
||||
--- themselves can be used to throttle unneeded callbacks. the `on_start`
|
||||
--- callback can return `false` to disable the provider until the next redraw.
|
||||
|
||||
2
runtime/lua/vim/_meta/api_keysets.lua
generated
2
runtime/lua/vim/_meta/api_keysets.lua
generated
@@ -227,6 +227,7 @@ error('Cannot require a meta file')
|
||||
--- @field virt_text_hide? boolean
|
||||
--- @field hl_eol? boolean
|
||||
--- @field hl_mode? string
|
||||
--- @field invalidate? boolean
|
||||
--- @field ephemeral? boolean
|
||||
--- @field priority? integer
|
||||
--- @field right_gravity? boolean
|
||||
@@ -243,6 +244,7 @@ error('Cannot require a meta file')
|
||||
--- @field conceal? string
|
||||
--- @field spell? boolean
|
||||
--- @field ui_watched? boolean
|
||||
--- @field undo_restore? boolean
|
||||
|
||||
--- @class vim.api.keyset.user_command
|
||||
--- @field addr? any
|
||||
|
||||
Reference in New Issue
Block a user