1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: utils.misc: Adding luadoc comment for opts table passed to highlight_yank()

This commit is contained in:
Henrik Hautakoski 2024-08-26 19:24:17 +02:00
parent a57f1ddae0
commit 388916ee13

View file

@ -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", {}),