mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
nvim: utils.misc: Adding luadoc comment for opts table passed to highlight_yank()
This commit is contained in:
parent
a57f1ddae0
commit
388916ee13
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,12 @@
|
|||
|
||||
local M = {}
|
||||
|
||||
---@class HighlightYankConfig
|
||||
---@field enable boolean
|
||||
---@field timeout number
|
||||
---@field higroup string
|
||||
|
||||
---@param opts HighlightYankConfig
|
||||
M.highlight_yank = function(opts)
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
group = vim.api.nvim_create_augroup("highlight_yank", {}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue